Crimean War
Before the siege of Sevastopol, the Russians had provisional trench systems built to defend the city. Rifles with rifled barrels (e.g. Enfield Rifled Musket) were used for the first time, which could be used to hit at a long distance. Although known for some time, the effectiveness of hand grenades was recognized in trench warfare.
War of Secession
The War of Secession was fought at the beginning with tactics from the Napoleonic era, but towards the end the war became a preview of the First World War. Thus, field fortifications became very important. These included the Spanish cavalry made of pointed wooden stakes, but also the first land mines. The Battle of Cold Harbor is considered the first open field battle, i.e. not a siege, which solidified into a trench warfare.
The Atlanta Campaign and the Siege of Petersburg near the end of the Civil War, with their trenches, were in marked contrast to early battles such as the First Battle of Bull Run.
Russo-Japanese War
The Russo-Japanese War (1904-1905) saw the first use of barbed wire and machine guns in the siege of Port Arthur. Infantry were also consistently equipped with breechloaders, which allowed a small force to unleash greater firepower. A small group of defenders could thus repel attackers much more easily with proper cover.
First World War
Main article: Trench warfare in World War I
With the outbreak of war, troops realized that the smallest amount of cover enabled the defender to repel an enemy attacking head-on. Frontal attacks resulted in dramatic casualties; therefore, flank attacks were seen as the only way to win. This led to a series of encircling maneuvers after the Battle of Marne, which ended only when both armies reached the coast. The trench system of the Western Front stretched from the North Sea to Switzerland.
After the First World War, trench warfare occurred only very rarely.
Second World War
The Second World War was characterized by the war of movement of mechanized troops and the air war on both the operational and tactical level, in the beginning mostly against an opponent who relied on fortifications and field positions such as the Maginot Line in France or the Metaxas Line in Greece. These were usually quickly broken through.
Nevertheless, even the Wehrmacht in the Russian campaign secured and defended larger sections of the front by infantry in extended field positions and bunker lines over longer periods of time and tried to compensate for a lack of mobile combat power with the Atlantic Wall. Each of these defensive systems could usually be breached by the attacker within a few hours and render the other adjoining sections obsolete.
This was also evident in the Indochina War as in the Battle of Điện Biên Phủ and the Korean War.
Iran-Iraq War
The most famous example of trench warfare after World War I was the Iran-Iraq War. In this war, both sides had a large infantry army, but very little armored vehicles, aircraft, or the necessary training. The result was a battle comparable to World War I, with trenches and the use of chemical weapons.
Eritrea-Ethiopia War
Another example is the war between Ethiopia and Eritrea, which also primarily involved infantry units.