Its northern deserts were a battleground in the Egypt-Israeli conflicts of the 1950s and 1960s , and it was occupied by Israel for many months before it passed permanently back into Egypt 's hands with the treaty of 1979 .
The treaty of 1979 giving the northern deserts to Egypt was revised a few times before it was accepted .