Since the late 19th century, soldiers of various nations, especially infantry, often wore leggings to protect their lower leg, to keep dirt, sand, and mud from entering their shoes, and to provide a measure of ankle support.