Israel and Palestine – war is not a solution
Israel and Egypt signed a peace treaty at Camp David in 1978. They recognized each other as states and ended the state of war that had existed between them since 1948. Israel also returned the last part of the Sinai Peninsula still under its control to Egypt.
It was also stipulated that the rights of the Palestinians should be recognized and the Israeli settlements built on the occupied Palestinian territories should be dismantled. In return, Israeli ships were given free passage through the Suez Canal, and the Strait of Tiran and the Gulf of Aqaba were also recognized as international waterways and therefore also passable for Israel. – Source: https://www.dw.com/de/z%C3%A4her-frieden-das-camp-david-abkommen/a-45510109
This treaty was a treaty for the benefit of third parties: Israel and Egypt thereby agreed on a two-state solution for Israel and Palestine, even though the Palestinians were not parties to the treaty. The Camp David Treaty could not legally bind the Palestinians and their organizations - PLO and later Hamas - to anything. Nevertheless, the hope was that this would end Palestinian terror.