 He was expelled from the Alignment, and as a result, sat as an independent MK.As foreign minister in Begin's government, he was instrumental in drawing up the Camp David Accords, a peace agreement with Egypt.Dayan resigned his post in October 1979, because of a disagreement with Begin over whether the Palestinian territories were an internal Israeli matter (the Camp David treaty included provisions for future negotiations with the Palestinians; Begin, who did not like the idea, did not put Dayan in charge of the negotiating team).