On November 19, 1977, Egyptian president Anwar Sadat made an unprecedented trip to Jerusalem, signaling his willingness to make a separate peace with Israel despite the continuing opposition of the rest of the Arab world. Two years later, after intense negotiations with U.S. president Jimmy Carter, Sadat and Israeli prime minister Menachem Begin signed the Camp David accords, which ended the state of war between Egypt and Israel.