Question: how did the united states get california?
Answer: Causes of the Mexican-American War Texas gained its independence from Mexico in 1836. ... Gold was discovered in California just days before Mexico ceded the land to the United States in the Treaty of Guadalupe Hidalgo.