Encouraged by the Aetolian League and their calls to liberate Greece from the Romans, the Seleucid king AntiochusIII landed with his army at Demetrias, Thessaly, in 192BC, and was elected "strategos" by the Aetolians. Macedonia, the Achaean League, and other Greek city-states maintained their alliance with Rome. The Romans defeated the Seleucids in the 191BC Battle of Thermopylae as well as the Battle of Magnesia in 190BC, forcing the Seleucids to pay a war indemnity, dismantle most of its navy, and abandon its claims to any territories north or west of the Taurus Mountains in the 188BC Treaty of Apamea. With Rome's acceptance, PhilipV was able to capture some cities in central Greece in 191–189BC that had been allied to AntiochusIII, while Rhodes and Eumenes II () of Pergamon gained territories in Asia Minor.