Israel 102 out of 106 Israeli hostages were successfully rescued. The 1977 Knesset elections marked a major turning point in Israeli political history as Menachem Begin's Likud party took control from the Labor Party. Later that year, Egyptian President Anwar El Sadat made a trip to Israel and spoke before the Knesset in what was the first recognition of Israel by an Arab head of state. In the two years that followed, Sadat and Begin signed the Camp David Accords (1978) and the Israel–Egypt Peace Treaty (1979). In return, Israel withdrew from the Sinai Peninsula and agreed to enter negotiations over
Anwar Sadat Kosygin's two-day long stay it is unknown if he and Sadat ever met in person. The Israeli military then continued their drive to encircle the Egyptian army. The encirclement was completed on 24 October, three days after the ceasefire was broken. This development prompted superpower tension, but a second ceasefire was imposed cooperatively on 25 October to end the war. At the conclusion of hostilities, Israeli forces were 40 kilometres (25 mi) from Damascus and 101 kilometres (63 mi) from Cairo. The initial Egyptian and Syrian victories in the war restored popular morale throughout Egypt and the Arab World and,