A border dispute led to the Mexican-American War, which began in 1846 and lasted for two years; the War was settled via the Treaty of Guadalupe Hidalgo, which forced Mexico to give up over half of its land to the U.S., including Alta California, New Mexico, and the disputed parts of Texas.