During 1917, the five divisions in France fought in three Allied offensives: the Battle of Bullecourt (part of the Battle of Arras), the Battle of Messines and the Third Battle of Ypres. Meanwhile, the light horse had entered southern Palestine. After two attempts to break through the Turkish defences at Gaza, the decisive victory was achieved in the Third Battle of Gaza in which the Australians captured the town of Beersheba in a dramatic cavalry charge. By the end of the year, British forces had captured Jerusalem.