The Mexican Cession of 1848 was part of the agreement between Mexico and the U.S. that ended the Mexican-American War. The Treaty of Guadalupe Hidalgo officially ended the war and ceded to the U.S. land equivalent to about one-third of Mexico as it existed after its independence from Spain