Five infantry divisions of the AIF saw action in France and Belgium, leaving Egypt in March 1916. I ANZAC Corps subsequently took up positions in a quiet sector south of Armentieres on 7 April 1916 and for the next two and a half years the AIF participated in most of the major battles on the Western Front, earning a formidable reputation. Although spared from the disastrous first day of the Battle of the Somme, within weeks four Australian divisions had been committed. The 5th Division, positioned on the left flank, was the first in action during the Battle of Fromelles on 19 July 1916, suffering 5,533 casualties in a single day. The 1st Division entered the line on 23 July, assaulting Pozieres, and by the time that they were relieved by the 2nd Division on 27 July, they had suffered 5,286 casualties. Mouquet Farm was attacked in August, with casualties totalling 6,300 men. By the time the AIF was withdrawn from the Somme to reorganise, they had suffered 23,000 casualties in just 45 days.