Peace and freedom were proclaimed by the Roman commander, Titus Quinctius Flamininus. This peace was somewhat uneasy, as the Romans had failed to reach a satisfactory alliance with the Seleucid Empire, co-conspirators with Macedon in the seizure of Ptolemaic lands. The Seleucids were not of much help to Macedon as they were engaged in fighting the Egyprian army in Syria. Having acquired Syria by victory over Egypt, Antiochus III the Great turned his attention to his own "liberation of Greece" from the Romans, invading it through the Hellespont and Thermopylae, starting the Roman–Seleucid War (192-188 BC), during which Hannibal, then a refugee, was a personal advisor to Antiochus. The Seleucid army was stopped by a Roman at the Battle of Thermopylae (191 BC). The rest of the war went no better, forcing the surrender of Antiochus. To obtain peace he paid reparations to Rome and ceded Anatolia to Rhodes and Pergamum.