Treaty of Guadalupe Hidalgo
After the Treaty of Cahuenga was signed in early 1847, the Pacific Squadron then went on to capture all Baja California cities and harbors and sink or capture all the Mexican Pacific Navy they could find. Baja California was returned to Mexico in subsequent Treaty of Guadalupe Hidalgo negotiations. California was under U.S. control by January 1847 and formally annexed and paid for by the U.S. in the Treaty of Guadalupe Hidalgo signed in 1848.