Rome was originally a city state. Similar to how the Greek city states (polis), Athens, Sparta, Corinth, Thebes, Rome ended up dominating its neighbors, other Latin city states, and non-Latin Italians including the Etruscans and the Samnites. But Rome managed to consolidate its power more effectively, while the powerful Greek city states were forced to use various types of Leagues, which they subtly controlled, Rome dominated its neighbors and either absorbed them, making them Roman too, or tied them to themselves as Socii allies (Friend and Ally of Rome), through an alliance system of protection and mutual security. They didn't have a Peloponnesian League, or a Delian League, they simply had the Roman Senate and People, everyone else was subordinate, lesser citizens in the whole, but given autonomy to govern their own domestic affairs.
During its wars with the Etruscan city states, Gallic tribes of the north Italy region, in the Po Valley, were used as quasi mercenaries. When Rome defeated the Etruscans, taking control of the lands of northern Italy on both sides of the Apennine Mountains, it demonstrated to the Gallic tribes that Rome had its mind on expansion. In retaliation, a large confederation of Gallic tribes formed up and marched south, defeating the Roman field army at Alia, and sacking a good part of the Rome itself, while the remnants barricaded themselves on the Capitoline Hill. At that point, most Romans didn't live in Rome, they lived in outside towns and villages, so only a small portion of the total forces were actually stuck inside the city. While a relief army was raise, the Gauls eventually pulled out and themselves were defeated by the famous Cincinnatus. Following the war, Rome reformed its military to make it more effective, and strengthened the city walls, as well as embedding military colonies further north, to protect the frontier from further Gallic invasions. Within a 150 years, all of Italian Gaul and Southern Italia (Magna Grecia/Greater Greece) was conquered, giving Rome total control of Italy.