<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 a monarchy, and it was ruled by two consuls who were elected annually. The consuls had power over all of the provinces of the Roman Empire, and they had the power to declare war, raise taxes, and appoint officials. The Roman Republic was replaced by the Roman Empire in 27 BC.