The war in 1973, despite the Egyptian-Syrian surprise attack.
ended when the IDF forces were 20 kilometers from Damascus and 100 kilometers from Cairo. When Israeli forces besieged 30,000 Egyptian soldiers.
The Egyptians understood that peace is the only way.