Was founded in 1841, and became the capital of California in 1845. It obtained a city charter in 1863.