With some major exceptions of outright military rule, the Roman Republic remained an alliance of independent city-states and kingdoms (with varying degrees of independence, both de jure and de facto) until it transitioned into the Roman Empire.