After its capture by Aratus, Corinth also joined the Achaean League. It was followed shortly afterwards by Megara, Troezen, and Epidaurus. The Achaean League gained more renown when Ptolemy III Euergetes, the new king of Egypt, was elected "hegemon". Both the League and rival Macedon then sought new allies. The Macedonian king Antigonus chose the Aetolian League, which had ambitions of working with him to defeat the Achaean League and then share out the conquered territory. The Achaean League allied with Sparta, one of the most powerful "poleis" of Greece.