During the remainder of the Mandate, fighting between the Jewish and Arab communities intensified. The end of the Mandate and Britain's final withdrawal from Palestine was marked by the Israeli Declaration of Independence and the start of the 1948 Arab-Israeli War, when five Arab states intervened in the inter-communal fighting. The Arab armies were led by Jordan, the most effective state, whose military forces were trained and led by British officers. The war ended with Israel, in addition to the territory assigned by the UN for the creation of a Jewish state, also in control of much of the Mandate territory which had been assigned by the UN for the creation of an Arab state. The remainder was divided between Jordan and Egypt. Hundreds of thousands of, overwhelmingly Arab, civilians had become displaced.