In 1840, California was a sparsely populated part of Mexico's Alta California province (extending into present-day Arizona, Utah, Nevada). Its diverse inhabitants included Native American tribes, Spanish settlers, and growing numbers of Americans and Europeans drawn by agriculture and trade.
The economy centered on cattle ranching (hides, tallow) and crops like wheat and barley. Spanish missions shaped the cultural and architectural landscape. California remained under Mexican rule until the U.S.–Mexican War (1846–1848) and became the 31st state in 1850.