Juan Bautista de Anza chose the site, and José Joaquín Moraga founded the pueblo with settlers from Anza’s expedition to grow food for the presidios. In 1778 it had 68 people.
Floods at the first site, near today’s Hobson and San Pedro streets, led the town to move in 1797 to the area around the plaza that became downtown.