Anwar Sadat of the Israeli army led by General Ariel Sharon had crossed the Suez Canal, trying to encircle first the Egyptian Second Army. Although this failed, prompted by an agreement between the United States of America and the Soviet Union, the United Nations Security Council passed Resolution 338 on 22 October 1973, calling for an immediate ceasefire. Although agreed upon, the ceasefire was immediately broken. Alexei Kosygin, the Chairman of the USSR Council of Ministers, cancelled an official meeting with Danish Prime Minister Anker Jørgensen to travel to Egypt where he tried to persuade Sadat to sign a peace treaty. During
Anwar Sadat were turned from bitter enemies into fast friends. The relationship between Cairo and Tehran became so friendly that the Shah of Iran, Mohammad Reza Pahlavi, called Sadat his "dear brother". After the 1973 war with Israel, Iran assumed a leading role in cleaning up and reactivating the blocked Suez Canal with heavy investment. The country also facilitated the withdrawal of Israel from the occupied Sinai Peninsula by promising to substitute the loss of the oil to the Israelis with free Iranian oil if they withdrew from the Egyptian oil wells in western Sinai. All these added more to the personal