Dan 11:25 "He shall stir up his power and his courage against the king of the South with a great army. And the king of the South shall be stirred up to battle with a very great and mighty army; but he shall not stand, for they shall devise plans against him."
In 170 BCE, when Antiochus IV felt secure about the state of his own kingdom, he decided to take Egypt by force in what came to be known as the Sixth Syrian War. He regarded Ptolemy VI as a weak ruler and therefore not capable of successfully waging war against him. Antiochus IV was able to move his army to the border of Egypt before he was met by the Egyptians at Pelusium, which is near the Nile Delta. The Egyptians had a large army arrayed against him there. Antiochus, risking death by riding into the midst of the battle of Pelusium, ordered the Egyptians to be taken alive instead of slain. By this policy, he gained Pelusium and later took Memphis.
Dan 11:26 "Yes, those who eat of the portion of his delicacies shall destroy him; his army shall be swept away, and many shall fall down slain."
Ptolemy VI's army, although large, was not able to withstand Antiochus IV. In large part, this was due to the intrigues of Antiochus IV, who corrupted several of the Egyptian ministers and officers. This was one of the main causes of the defeat of Ptolemy VI. Those who were in his confidence and possessed the secrets of the state betrayed him to Antiochus IV. For example, Ptolemy Macron (also called "Ptolemy the son of Dorymenes") had been appointed by Ptolemy VI as governor of Cyprus. However, sensing the young king's weakness, he deserted to Antiochus IV, who made him governor of Coele Syria and Phoenicia.
Dan 11:27 "Both these kings' hearts shall be bent on evil, and they shall speak lies at the same table; but it shall not prosper, for the end will still be at the appointed time."
After he took control of Pelusium and Memphis, Antiochus IV set his sights on Alexandria. Due to the intrigues of Antiochus IV mentioned in verse 26, the Alexandrians had renounced their allegiance to Ptolemy VI, and had made his younger brother, Ptolemy VII Euergetes, king in his place. While at Memphis, Antiochus IV and Ptolemy VI had frequent conferences. Antiochus IV professed his great friendship to his nephew and concern for his interests, but his true plan was to weaken Egypt by setting the brothers against one another.
Conversely, Ptolemy VI professed gratitude to his uncle for the interest he took in his affairs. He laid the blame of the war upon his minister Eulaeus, one the guardians appointed to watch over him after his father's death. All the while, Ptolemy VI sought to smooth over things with his brother Ptolemy VII so they could join forces against their deceitful uncle, Antiochus IV.
NOTE – the appointed time is the endtime or the last days.