The Second Macedonian War (200–197 BC) was fought between Macedon, led by Philip V of Macedon, and Rome, allied with Pergamon and Rhodes. Philip was defeated and was forced to abandon all possessions in southern Greece, Thrace, and Asia Minor. During their intervention, although the Romans declared the "freedom of the Greeks" against the rule from the Macedonian kingdom, the war marked a significant stage in increasing Roman intervention in the affairs of the eastern Mediterranean, which would eventually lead to Rome's conquest of the entire region. As a result, Macedonia gives up all possessions and client states in southern Greece, Thrace, and Anatolia.
Antiochus and Philip V of Macedon then made a pact to divide the Ptolemaic possessions outside of Egypt, and in the Fifth Syrian War, the Seleucids ousted Ptolemy V from the control of Coele-Syria. The Battle of Panium (200 BC) definitively transferred these holdings from the Ptolemies to the Seleucids. Antiochus appeared, at the least, to have restored the Seleucid Kingdom to glory.