Trench warfare is a type of land warfare using occupied lines largely comprising military trenches, in which combatants are well-protected from the enemy's fire and are substantially sheltered from artillery. Although used in antiquity it fully developed in the 17th century. During the American Civil War (1861–1865), particularly during the sieges of Vicksburg and Petersburg, modern firepower clashed with outdated infantry tactics. Soldiers began digging in to avoid the deadly shelling. This already signaled the end of classic open-field battles. This development ultimately reached its most extreme and deadly form in World War I (1914–1918). Through the combined use of machine guns, rapid-fire artillery, and barbed wire, the front lines—particularly on the Western Front—became frozen in a kilometer-long, deeply echeloned system of trenches. The trench was now no longer merely a means of siege but, as a defensive infrastructure, determined the entire course of the industrialized war of attrition.

Origin An early mention of the trench dates back to the 5th century B.C. by the Greek historian Thucydides in his work The History of the Peloponnesian War. Here he states: A trench was dug all round the temple and the consecrated ground, and the earth thrown up from the excavation was made to do duty as a wall. […] Meanwhile the Syracusans marched out and began a second stockade, starting from the city, across the middle of the marsh, digging a trench alongside to make it impossible for the Athenians to carry their wall down to the sea. Furthermore, Aristotle, in Nicomachean Ethics, states that "generals" drew their soldiers in front of the trenches.

A more general use of trenches can be found in the accounts of Roman historians. Among them are Polybius who refers to trenches several times in his work about the Punic wars and Flavius Josephus mentioning the use of trenches during the First Jewish-Roman War. The most comprehensive report comes from Caesar. In De Bello Gallico he describes in detail the construction of trenches during the Siege of Alesia. In order to protect the soldiers working on the main siege constructions a 20 feet wide trench was dugged. Additionally two further inner trenches each 15 feet broad and 15 feet deep were dugged and flooded.

Until the early modern period, trenches served primarily as obstacles e.g. ,by filling them with water, against enemy attacks. In the 17th century the Ottomans had developed a system of parallels and saps(trenches running zigzag towards the enemy). Placing all the infantry into those trenches, this system would've given the besiegers protection against the enemy artillery. Although there had been earlier examples of trench parallels in western Europe, in the second half of the 17th century the French military engineer Sébastien Le Prestre de Vauban adopted this successful system. His system envisioned three parallel trenches that were connected via zig-zagging approach trenches. The trenches usually measured four to five feet in depth and six to twelve feet in width. Gabions were fitted to the front of the trench parallels serving as the trenches' parapets. Sometimes ledges were added to the parallels as firing platforms for the infantry assigned to the trenches. The sloping rear sides of the parallels made sure that the besieging troops could retreat in the event of a garrison sortie. Lodgements as well as redoubts were constructed to serve as assembly points and to house troops and workers.

American Civil War During the U.S. Civil, particularly during the Overland and Petersburg campaigns, an early form of trench warfare, which would come to define World War I, developed. Although the trenches often appeared to merge into one another to on-site observers, the Union fortifications were essentially divided into three levels: the rear area, the main line of battle, and the front area with firing holes on both sides. The trenches were dug wide enough for soldiers to sit or stand in them. Toward the enemy, slightly raised logs were placed to protect the soldiers' heads and shoulders while they fired. At regular intervals, there were forts and batteries made of wood and earth to house artillery and siege mortars. Many positions, especially forts and batteries, had so-called bomb-proofs. These were deep holes in the ground, reinforced with tree trunks and covered with wood and earth, designed to provide protection against artillery bombardments. As there were no barb wire or other obstacles that would effectively have stopped an attacker the main advantage for the defender were the open glacis that had to be crossed. This would give the defender enough time to fire as many shots as possible at close range from relative cover and demoralize the attacker before he reaches the objective.

First World War

By 1914, rapid-firing artillery like the "French 75", machine guns, and high explosive fragmentation rounds gave defenders a overwhelming advantage over advancing infantry and cavalry, outstripping existing tactical doctrines.Gwynne Dyer, War; Trevor N. Dupuy, Evolution of Weapons and Warfare, 1980. Major armies adopted differing approaches: France relied on aggressive speed (Attaque à outrance), the Germans on firepower with howitzers, and the British on pragmatism. None fully anticipated the impact of defences in depth, assuming artillery could suppress entrenched troops. Following the First Battle of the Aisne, mutual flanking attempts expanded into the "Race to the Sea", producing a continuous trench line from Switzerland to the North Sea. By late October 1914, the Western Front solidified into a stalemated war of attrition. Without open flanks, costly frontal assaults became inevitable, resulting in massive casualties for both attackers and defenders as reserves were committed to counter-attacks and artillery bombardments. This static warfare endured until the German Spring Offensive in March 1918, with similar conditions occurring on other fronts such as Italy and Gallipoli. Additionally, military logistics severely restricted operations. Unprecedented ammunition consumption meant reliance on railheads, as horse-drawn transport could not support deep advances. This logistical bottleneck prevented operational breakthroughs until the widespread motorization of World War II.Van Creveld, p. 109-41

Construction Early World War I trenches were simple, lacking traverses, and packed with troops based on pre-war doctrine, leading to heavy casualties. Defenders soon reduced frontline density and added barbed wire obstacles.Improvised trenches quickly grew into deep, interlocking defensive works with shell-proof dugouts. Well-developed trenches were dug at least deep. Trenches featured a front parapet with a fire step and a rear parados to protect against rear blast. Walls were revetted with sandbags, wire mesh, or wood, while floors used duckboards over drainage channels. Corrugated metal roofs provided shrapnel protection. Protection from snipers prompted the use of armoured loopholesand trench periscopes, as well as the periscope rifle used heavily at Gallipoli against Ottoman forces.Dugouts provided rear shelter. British dugouts reached in depth. Drawing on Russo-Japanese War studies,. German forces built concrete-reinforced, multi-story dugouts at least deep with ventilation and amenities.

Early trenches were underdeveloped despite existing manuals. They were dug in zigzagging patterns or divided into fire bays with traverses to prevent enfilade fire and contain shell blasts. Standard British doctrine called for three parallel lines (front, support, and reserve, spaced 200–300 yards apart) linked by communication trenches. Temporary assembly trenches, utility "saps" into no-man's land, and rear fallback positions were also constructed. Outward bulges formed vulnerable salients. German fortifications on the Somme in 1916 featured deep, two-tiered trench systems with concrete shelters 20 feet underground, complete with multiple exits, gas curtains, and plumbing. Belts of barbed wire, razor wire, and concertina wire over deep stalled advancing infantry in target zones. Combined with machine-gun fire, wire obstacles caused the majority of failed assaults. Liddell Hart cited wire and machine guns as the core impediments to mobile warfare. Wire was installed at night by wiring parties using quiet screw pickets invented by the Germans. Clearing methods included artillery bombardments, stepping over wire, wire cutters (though Commonwealth cutters struggled with heavy German gauge wire),Canada's Army, p. 79. and Bangalore torpedoes.Bangalore torpedo", in Fitzsimons, Bernard, editor, Encyclopedia of 20th Century Weapons and Warfare (London: Phoebus Publishing Company 1977), Volume 3, p. 269.

Trench warfare created its own subterranean geography, replacing conventional infrastructure with trench lines and trench railways. Strategic high ground made minor unnamed features critical objectives, such as Hill 60. In Flanders, high water tables flooded trenches, forcing Allied troops to build above-ground breastworks from sandbags. In the Alps, trenches reached heights of on steep rock and glaciers, including positions on the Ortler, Adamello-Presanella, and Marmolada.Visual observation of enemy positions led to specialized innovations such as the camouflage tree.

No man's land

The space between the opposing trenches was referred to as "no man's land" and varied in width depending on the battlefield. On the Western Front it was typically between , though only on Vimy Ridge.

After the German withdrawal to the Hindenburg Line in March 1917, no man's land stretched to over a kilometre in places. At the "Quinn's Post" in the cramped confines of the Anzac battlefield at Gallipoli, the opposing trenches were only apart and the soldiers in the trenches constantly threw hand grenades at each other. On the Eastern Front and in the Middle East, the areas to be covered were so vast, and the distances from the factories supplying shells, bullets, concrete and barbed wire so great, trench warfare in the West European style often did not occur.

Weaponry Infantry weapons and machine guns

At the start of the First World War, the standard infantry soldier's primary weapons were the rifle and bayonet. However, static trench warfare quickly forced a shift toward hand grenades, including rifle grenades. Specialist grenadier groups were formed to attack covered positions. While German and Ottoman forces had standard grenades early on, British troops relied on improvised devices until the Mills bomb entered wide circulation in late 1915. Since standard equipment was initially ill-suited for confined spaces, troops adopted improvised close-quarter weapons like short clubs, knives, and sharpened spades. These were later replaced by standardized close-combat gear.

Specialised troops like trench sweepers (Nettoyeurs de Tranchées) cleared overrun positions and conducted raids, often choosing grenades, knives, and semi-automatic pistols. Mechanical spring- and catapult-powered grenade throwers were briefly fielded before being replaced by rifle grenades and mortars by 1916.The Germans introduced Flammenwerfer (flamethrowers) in mid-1915, which by 1917–1918 became key weapons for German Stoßtruppen (stormtroopers). Allied forces also deployed shotguns—such as modified "trench guns"—for close-quarters combat.