Before Rome, Italy was inhabited by various tribal groups, most prominently the Etruscans. The Romans and Etruscans vied for power in the region around Rome. In 509 BCE, the last Etruscan king was overthrown and the Roman Republic was established, which expanded significantly over centuries and established Rome as a major power. The Republic ended in 27 BCE, transitioning to the Roman Empire under Augustus, which at its height spanned most of Europe, North Africa, and the Middle East.