<P> The history of California can be divided into: the Native American period; European exploration period from 1542 to 1769; the Spanish colonial period, 1769 to 1821; the Mexican period, 1821 to 1848; and United States statehood, which continues to this present day . </P> <P> California was settled from the North by successive waves of arrivals during the last 10,000 years . It was one of the most culturally and linguistically diverse areas in pre-Columbian North America . After contact with Spanish explorers, most of the Native Americans died out from European diseases . </P> <P> After the Portolà expedition of 1769--70, Spanish missionaries began setting up 21 California Missions on or near the coast of Alta (Upper) California, beginning in San Diego . During the same period, Spanish military forces built several forts (presidios) and three small towns (pueblos). Two of the pueblos would eventually grow into the cities of Los Angeles and San Jose . After Mexican Independence was won in 1821, California fell under the jurisdiction of the First Mexican Empire . Fearing the influence of the Roman Catholic church over their newly independent nation, the Mexican government closed all of the missions and nationalized the church's property . They left behind a small "Californio" (white Hispanic) population of several thousand families, with a few small military garrisons . After the Mexican--American War of 1846 - 48, Mexico was forced to relinquish any claim to California to the United States . The unexpected discovery of gold in 1849 produced a spectacular gold rush in Northern California, attracting hundreds of thousand of ambitious young men from around the world . Only a few struck it rich, and many returned home disappointed . Most appreciated the other economic opportunities in California, especially in agriculture, and brought their families to join them . California became the 31st US state in 1850 and played a small role in the American Civil War . Chinese immigrants increasingly came under attack from nativists; they were forced out of industry and agriculture and into Chinatowns in the larger cities . As gold petered out, California increasingly became a highly productive agricultural society . The coming of the railroads in 1869 linked its rich economy with the rest of the nation, and attracted a steady stream of migrants . In the late 19th century, Southern California, especially Los Angeles, started to grow rapidly . </P> <P> Different tribes of Native Americans lived in the area that is now California for an estimated 13,000 to 15,000 years . Over 100 tribes and bands inhabited the area . Various estimates of the Native American population in California during the pre-European period range from 100,000 to 300,000 . California's population held about one - third of all Native Americans in what is now the United States . </P>

What discovery set off a massive migration to california