Treaty of Guadalupe Hidalgo
The Treaty of Guadalupe Hidalgo, signed on February 2, 1848, ended the war and ceded California to the United States, paving the way for California statehood in 1850.