With the failure of the Second Battle of Gaza a third assault was launched on Gaza between 31 October and 7 November 1917. Units from the Anzac Mounted Division and the Australian Mounted Division took part in the battle. The battle was a complete success for the Allies. The Gaza–Beersheba line was completely overrun and 12,000 Turkish soldiers were captured or surrendered. The critical moment of the battle was the capture of the town of Beersheba on the first day by Australian light horsemen. The Australian 4th Light Horse Brigade, under Brigadier General William Grant, charged more than at the Turkish trenches, overran them and captured the wells at Beersheba. In the capture of Beersheba, the Australians lost 31 men killed. A further 32 were wounded, while 80 horses were lost. On the Turkish side, more than 500 men were killed and 1,500 captured as well as nine artillery pieces and a number of machine guns and other pieces of equipment.