The Yildirim Army Group under the command of Field Marshal Erich von Falkenhayn was responsible for the defence of Palestine. On the western flank the Ottoman Eighth Army was composed of the XXII Corps' 3rd and 53rd Divisions defending Gaza and the XX Corps' 26th and 54th Divisions defending the line stretching to the east of Gaza, under the command of von Kressenstein. The defence of Gaza was the responsibility of XXII Corps, which had two divisions in the front line (53rd, 3rd from west to east) and two in reserve (7th and 19th). The XXII Corps' four regiments had 4,500 rifles, which were reinforced by two divisions to bring the total to 8,000 defenders, deployed thus: