The 'occupation of the Gaza Strip by Egypt occurred between 1948 and October 1956, and again from March 1957 to June 1967. Egypt did not annex the Gaza Strip but left it under Egyptian military rule as a temporary arrangement pending the resolution of the Palestine Question.
After World War II, the British Mandate of Palestine came to an end. The surrounding Arab nations were also emerging from colonial rule. Transjordan, under the Hashemite ruler Abdullah I, gained independence from Britain in 1946 and was called Jordan, but it remained under heavy British influence. Egypt, while nominally independent, signed the Anglo-Egyptian Treaty of 1936 that included provisions by which Britain would maintain a garrison of troops on the Suez Canal. From 1945 on, Egypt attempted to renegotiate the terms of this treaty, which was viewed as a humiliating vestige of colonialism.