The infantry battalions of 54th Division were slowly brought back up to strength with drafts from home during 1916, and by mid-January 1917 the whole division had assembled at Moascar in preparation for the British invasion of Sinai. After crossing the Wilderness, the division took part in the First (26–7 March) and Second Battle of Gaza (17–9 April)