Treaty of Guadalupe Hidalgo
San Francisco became part of the United States with the signing of the Treaty of Guadalupe Hidalgo in 1848.