New Mexico played a significant role in the American Civil War, with Union and Confederate forces fighting several battles in the territory. The most famous of these was the Battle of Glorieta Pass in 1862, which ended Confederate hopes of capturing the Southwest.