Following the British failure in the Second Battle of Gaza, the Egyptian Expeditionary Force underwent a major rearrangement with the appointment of General Edmund Allenby as the new Commander-in-Chief.