in 205 BC which promised Rome a small indemnity, formally ending the First Macedonian War. Macedon began to encroach on territory claimed by several other Greek city states in 200 BC and these pleaded for help from their newfound ally Rome. Rome gave Philip an ultimatum that he must submit Macedonia to being essentially a Roman province. Philip, unsurprisingly, refused and, after initial internal reluctance for further hostilities, Rome declared war against Philip in the Second Macedonian War. In the Battle of the Aous Roman forces under Titus Quinctius Flamininus defeated the Macedonians, and in a second larger battle under the same opposing commanders in 197 BC, in the Battle of Cynoscephalae, Flamininus again beat the Macedonians decisively. Macedonia was forced to sign the Treaty of Tempea, in which it lost all claim to territory in Greece and Asia, and had to pay a war indemnity to Rome. Between the second and third Macedonian wars Rome faced further conflict in the region due to a tapestry of shifting rivalries, alliances and leagues all seeking to gain greater influence. After the Macedonians had been defeated in the Second Macedonian War in 197 BC, the Greek city-state of Sparta stepped into the partial power vacuum in Greece. Fearing the Spartans would take increasing control of the region, the Romans drew on help from allies to prosecute the Roman-Spartan War, defeating a Spartan army at the Battle of Gythium in 195 BC. They also fought their former allies the Aetolian League in the Aetolian War, against the Istrians in the Istrian War, against the Illyrians in the Illyrian War, and against Achaia in the Achaean War. Rome now turned its attentions to Antiochus III of the Seleucid Empire to the east. After campaigns as far abroad as Bactria, India, Persia and Judea, Antiochus moved to Asia Minor and Thrace to secure several coastal towns, a move that brought him into conflict with Roman interests. A Roman force under Manius Acilius Glabrio defeated Antiochus at the Battle of Thermopylae and forced him to evacuate Greece: the Romans then pursued the Seleucids beyond Greece, beating them again in naval battles at the Battle of the Eurymedon and Battle of Myonessus, and finally in a decisive engagement of the Battle of Magnesia. In 179 BC Philip died and his talented and ambitious son, Perseus of Macedon, took his throne and showed a renewed interest in Greece.