 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.