The Spanish were not the first Europeans to arrive in California. The first recorded European exploration of California was by the Spanish explorer Juan Rodríguez Cabrillo in 1542. However, it was not until the late 1700s that the Spanish began to establish a permanent presence in the region.
In 1769, a group of Spanish soldiers and missionaries led by Gaspar de Portolá set out from Baja California to explore and colonize Alta California. They founded the first European settlement in California, the Presidio of San Diego, in 1769. Over the next few years, the Spanish established a series of missions and presidios along the coast of California, from San Diego to San Francisco.
The Spanish were motivated to explore and colonize California for several reasons. First, they were interested in expanding their empire and spreading their Catholic faith. Second, they were looking for a source of wealth and resources, such as gold and silver. Third, they wanted to protect their territory from other European powers, such as Russia and England.
The Spanish presence in California had a significant impact on the region. The Spanish introduced new crops, such as wheat and corn, and new livestock, such as cattle and horses. They also built roads and bridges, and they established a system of government. The Spanish also interacted with the Native American peoples of California, and they had a profound impact on Native American culture and society.
The Spanish continued to rule California until the Mexican-American War of 1846-1848. The war resulted in the United States taking control of California from Mexico.