Philip V ( ; 238–179 BC) was king (Basileus) of the ancient Kingdom of Macedonia from 221 to 179 BC. Philip's reign was principally marked by an unsuccessful struggle with the emerging power of the Roman Republic. He would lead Macedon against Rome in the First and Second Macedonian Wars, losing the latter but allying with Rome in the Roman-Seleucid War towards the end of his reign.