After the Pyrrhic War (280–275 BC) Rome asserted its hegemony over Magna Grecia and became increasingly involved in Greece and the Balkans peninsula. The First Macedonian War (214–205 BC) between the Roman Republic and the Kingdom of Macedon ended with the Treaty of Phoenice. During the Second Macedonian War (200–197), the Romans declared "the freedom of Greece" from the Macedonian Kings. After the Roman–Seleucid War (192–188), that ended with the Peace of Apamea, and the Third Macedonian War (171–168), after which Macedonian territory was divided into four client republics, Macedonia was formally annexed to the Roman Republic after the Fourth Macedonian War (150–148). After the Achaean League was itself defeated and dissolved by the Romans in the Achaean War in 146, during which the Battle of Corinth resulted in the looting and destruction of the city by Lucius Mummius Achaicus and Greece divided into the Roman provinces of Macedonia and Achaea. Athens thus came under Roman rule.