Respuesta :

they built settlements in cali because it belonged to mexico up until the treaty of Hidalgo which made it us teritory 
Mexicans built settlements in California up until 1848 because that territory belonged to Mexico.

After the Treaty of Hidalgo it became the territory of the United States.