Rome was first a republic before getting converted into an empire. This might appear to be paradoxical to some as becoming a republic is a process that usually starts from autocracy. However, history tells us that Rome was a well developed republic with the rule of law and elected representatives in 100 BC but personal ambitions and power equations let to circumstances where it got changed into an empire.
Hope this helps you!!