The United States gained Texas through the annexation of Texas in 1845, the negotiation of the Oregon Treaty between Great Britain in 1846, and finally the end of the Mexican-American war in 1848 which resulted in the Treaty of Guadalupe-Hildalgo in 1848