Trench warfare
By the end of October 1914, the whole front in Belgium and France had solidified into lines of trenches, which lasted until the last weeks of the war. Mass infantry assaults were futile in the face of artillery fire, as well as rapid rifle and machine-gun fire. Both sides concentrated on breaking up enemy attacks and on protecting their own troops by digging deep into the ground. After the buildup of forces in 1915, the Western Front became a stalemated struggle between equals, to be decided by attrition. Frontal assaults, and their associated casualties, became inevitable because the continuous trench lines had no open flanks. Casualties of the defenders matched those of the attackers, as vast reserves were expended in costly counter-attacks or exposed to the attacker's massed artillery. There were periods in which rigid trench warfare broke down, such as during the Battle of the Somme, but the lines never moved very far. The war would be won by the side that was able to commit the last reserves to the Western Front. Trench warfare prevailed on the Western Front until the Germans launched their Spring Offensive on 21 March 1918. Trench warfare also took place on other fronts, including in Italy and at Gallipoli.