Trench warfare is a type of warfare where combatants occupy trenches or other fortified positions, often for extended periods of time, and engage in combat with the enemy from these positions. This tactic was widely used during World War I and World War II, and is characterized by the use of trenches, machine guns, artillery, and other weapons.