<human>:  What was the Roman Republic?
<bot>: The Roman Republic was the political system of ancient Rome from 509 BC to 27 BC. The Roman Republic was the first of the Roman states, and was established by the Roman people after the expulsion of the last king of Rome, Tarquinius Superbus.