California was legally acquired by the United States through the Treaty of Guadalupe Hidalgo, signed on February 2, 1848. This treaty, which ended the Mexican-American War, was a formal agreement between the U.S. and Mexico, under which Mexico ceded California and other territories to the U.S. for $15 million, recognized by both nations and international law at the time.
