Answer :

1700- the land was not very explored yet. There was a permanent mission in Baja California (today Mexico) but nothern California was claimed by Spanish, but not too explored yet.

1821- that's when Mexico had it, it's Mexico's independence year!

1846- In june and July- the California Republic!

1850- from September 9th it belonged to the States.