That came about in this way. Philip V., king of Macedon, had allied himself with the Carthaginians in the Second Punic War, that war in which Hannibal seemed to have Rome at his mercy. During its progress the Romans had made alliances with several powers in the East: with Egypt, where one of the Ptolemies was king; with Rhodes, the large island lying just off the coast of Asia Minor, which had a strong navy; with Pergamus, a city state on the mainland, which also had a strong fleet; and of course she was the defender, in Italy and in Sicily, of the Greek colonies there.
When she was threatened by Philip of Macedon on her north-eastern side, she put herself at the head of a confederation of Greek states against Philip.
Philip, on his part, had made an ally of Antiochus, one of the dynasty of Seleucus, who was king of Syria, and they agreed between them to take possession of Egypt, which had little power of its own at this time to withstand them.
Rome against Macedon
Thus the Romans, with all the trouble with Carthage on their hands on the one side, had these enemies in Macedonia and right away to Asia Minor on the other. But the alliance with Pergamus and Rhodes gave them strength in the eastern waters of the Mediterranean.
Then, in 201 B.C., the Punic War ended, in a manner probably quite different from that which Philip and his Syrian friend had expected. Rome was free to turn her full attention to the East.
The legions met the Macedonians in several battles in Greece itself; a force sent from Rhodes defeated an army that Philip had sent into Asia Minor, where his ally Antiochus, who had troubles in his own kingdom, seems to have given him very little help. Another of his armies was broken up by the Greeks themselves at Corinth. In fact he suffered disaster in all directions. Within two years the war was over. The power of Macedon was crushed. Philip was allowed, by the treaty of peace which followed, to keep his kingdom of Macedonia, but he lost all that he had claimed to hold in Asia Minor, and Greece was set free from the sovereignty of the Macedonians which had weighed over them ever since the conquests of Alexander.
At the end of the Punic War Rome had claimed, and had annexed as her own by right of conquest, both Sicily and Spain, from which she had expelled the Carthaginians, but she did not at first, after the defeat of Philip, claim any of the territory which he lost in the war. She left Greece to enjoy the freedom she had won for her. But she had, of course, increased her reputation and her power towards the east of Italy enormously. The Greeks looked on Rome as their liberator and champion. About Antiochus they perhaps would not have troubled themselves, since he had proved such a feeble ally to Philip, but Antiochus began to stir up trouble for himself by his own imprudence and ambition.
He had given such feeble help to his ally, Philip, partly because he was engaged in an attack on Egypt. Already, nearly twenty years before, he had attempted to gain possession of the Egyptian provinces Phœnicia and Palestine, but had been heavily defeated near Gaza.
Now, just at the time that Philip was being finally beaten off the field in Greece, Antiochus was completely successful against Egypt. The reigning Ptolemy was a child, the government was in weak hands, Antiochus had little trouble. Amongst other consequences of his victories, one was that Palestine and Jerusalem passed from the hands of Egypt into the control of Syria, and it seems that the Jews resented the manner in which the later Ptolemies had ruled them, and welcomed the change. The Egyptian garrison was driven out.