The Treaty of Guadalupe Hidalgo was signed on February 2, 1848, marking the end of the Mexican-American War and establishing the Rio Grande as the border between Texas and Mexico. This treaty significantly altered the territorial landscape of North America, resulting in Mexico ceding a vast portion of its northern territories to the United States.