In the Treaty of Guadalupe Hidalgo (1848), which ended the Mexican-American War, the United States paid Mexico $15 million for a vast territory that included California and New Mexico (plus Nevada, Utah, Arizona, and parts of Colorado, Wyoming).
This acquisition completed the continental US (except Gadsden Purchase 1853). Gold discovered at Sutter's Mill (1848) weeks before signing—transforming California's value overnight.
The $15 million price tag remains one of history's most consequential real estate deals.