In 509 BC the Romans expelled their last king and founded the Republic, power resting with the senate and the annual consuls; the struggle of the plebs won the tribunes and the Twelve Tables (451-450 BC), a mixed constitution later ages admired. The Latin and Samnite wars unified Italy; three Punic Wars defeated Carthage (264-146 BC); Greece and the East were swallowed - the Republic ringed the Mediterranean. Expansion brought slave plantations, concentrated wealth and professional armies; after the failure of the Gracchi, civil wars followed in train - Marius, Sulla, Caesar, Octavian contending in turn - until in 27 BC Octavian received the name 'Augustus' and the Republic gave way to the Principate.