Trench warfare
Trench warfare has become archetypically associated with the First World War of 1914–1918, when the Race to the Sea rapidly expanded trench use on the Western Front starting in September 1914. 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. Trench warfare also took place on other fronts, including in Italy and at Gallipoli.
Tunnel warfare
The oldest known sources about employing tunnels and trenches for guerrilla-like warfare are Roman. After the uprising in Germania the insurgent tribes soon started to change defence from only local strongholds into utilising the advantage of wider terrain. Hidden trenches to assemble for surprise attacks were dug, connected via tunnels for secure fallback. In action often barriers were used to prevent the enemy from pursuing.