Trenches were common throughout the Western Front. Long, narrow trenches dug into the ground at the front, usually by the infantry soldiers who would occupy them for weeks at a time, were designed to protect World War I troops from machine-gun fire and artillery attack from the air.