In October 1942 the 9th Division and the RAAF squadrons in the area took part in the Second Battle of El Alamein (23 October to 11 November 1942). After a lengthy period of preparation, the Eighth Army launched its major offensive on 23 October. The 9th Division became involved in some of the heaviest fighting of the battle, and its advance in the coast area succeeded in drawing away enough German forces for the heavily reinforced 2nd New Zealand Division to decisively break through the Axis lines on the night of 1–2 November. The 9th Division suffered a high number of casualties during this battle and did not take part in the pursuit of the retreating Axis forces. During the battle the Australian Government requested that the division be returned to Australia as it was not possible to provide enough reinforcements to sustain it, and the British and US governments agreed to this in late November. The 9th Division left Egypt for Australia in January 1943, ending the AIF's involvement in the war in North Africa.