Complex sentence: By 1840, the settlements in Mexican California were limited for the most part to lands near coastal waters, and the Californios were worried about encroachments by foreigners, especially by Americans.
Split into simpler sentences: By 1840, the settlements in Mexican California were limited, for the most part, to lands near coastal waters. The Californios were worried about encroachments by foreigners, especially by Americans.