As part of the third phase of the Passchendaele offensive, the 10th Australian Brigade—of which McGee's 40th Battalion was part—was detailed to execute an attack on Broodseinde Ridge. The brigade was allocated four primary objectives to seize during the assault, one for each battalion, with the 40th Battalion to take the final target located on the ridge itself. The advance commenced at the predetermined time of 06:00 on 4 October 1917, under the cover of an artillery barrage. The first three battalions were able to seize their objectives, though the fighting intensified with each stage. As the 40th Battalion set to advance towards the final objective, its progress became hampered by increasingly heavy machine-gun and rifle fire, as well as by barbed wire entanglements and sectors of impassable swamp.