The land was controlled as a mandate of the British Empire from 1920 to 1948, having been ceded by the Ottomans at the end of the First World War. The Second World War saw the mandate bombed heavily. Once the British agreed to supply arms and form a Jewish Brigade in 1944, Yishuv Jews officially entered the conflict on the side of the allies. At the end of the war, amidst growing tensions with the conflict-weary British, the United Nations (UN), eager to appease both Arab and Jewish factions, adopted a Partition Plan for Palestine in 1947 recommending the creation of independent Arab and Jewish states, and an internationalized Jerusalem. The plan was accepted by the Jewish Agency but rejected by Arab leaders. The following year, the Jewish Agency declared the independence of the State of Israel, and the subsequent 1948 Arab–Israeli War saw Israel establishment over most of the former Mandate territory, while the West Bank and Gaza were held by neighboring Arab states. Israel has since fought several wars with Arab countries, and since the Six-Day War in June 1967 held occupied territories including the West Bank, Golan Heights and the Gaza Strip (still considered occupied after the 2005 disengagement, although some legal experts dispute this claim). Subsequent legislative acts have resulted in the full application of Israeli law within the Golan Heights and East Jerusalem, as well as its partial application in the West Bank via "pipelining" into Israeli settlements. Israel exerts full control over almost two-thirds of the West Bank and partial control over 165 Palestinian enclaves; Israel's occupation of the Palestinian territories is internationally considered to be the world's longest military occupation in modern times. Efforts to resolve the Israeli–Palestinian conflict have not resulted in a final peace agreement, while Israel has signed peace treaties with both Egypt and Jordan.