Between 1821 and 1880, the Santa Fe trail was primarily a commercial highway connecting Missouri and Santa Fe, New Mexico. When the Treaty of Guadalupe Hidalgo ended the Mexican-American War in 1848, the Santa Fe trail became a national road connecting the United States to the new southwest territories.