Three years after World War II on 15 May 1948, the British Mandate for Palestine ended. Prior to this, on 29 November 1947, the United Nations General Assembly approved the 1947 UN Partition Plan to create in Palestine two states, one Jewish and one Arab. The 1947–1948 Civil War in Mandatory Palestine broke out in response. On 14 May 1948, David Ben-Gurion declared the independence of the state of Israel and the following day the armies of Egypt, Jordan and Syria declared war and invaded, aided by soldiers sent from Iraq, starting the 1948 Arab–Israeli War. Egypt made gains early in the war, but these were reversed in late December 1948 when the Israeli army, in "Operation Horev", drove Egyptian forces out of the Negev and encircled the Egyptian Forces in the Gaza Strip, forcing Egypt to withdraw and accept a ceasefire. On 7 January 1949, a truce was achieved. Israeli forces proceeded to withdraw from Sinai and Gaza, leaving them to be occupied by Egypt.