When gold was discovered in California in 1848, the population of San Francisco, one of the major cities in the area, jumped to 10,000.