Impending war between Mexico and the US.
The American settlers in California resented the Mexican government and were fearful of oppressive reforms with rumors of a war between Mexico and the US. To secure their place, troops incited a rebellion and California declared their independence.