Aratus preferred distant Macedon to nearby Sparta, and allied himself with Doson, who in 222 BC defeated the Spartans and annexed their city – the first time Sparta had ever been occupied by a foreign power.