This is a list of pre-statehood mayors of San Diego. See also the mayor of San Diego for the list of mayors after statehood.
From 1770 San Diego was ruled by a commandant from the Presidio of San Diego under the Spanish and (from 1822) Mexican governments. When San Diego became a Pueblo in 1835, an alcalde (mayor) of San Diego served under the Mexican and pre-statehood United States governments.
San Diego became a pueblo in 1834, after a petition to Governor José Figueroa endorsed by Commandant Santiago Arguello. The first Alcade (mayor) Juan María Osuna was elected, defeating Pío Pico by 13 votes. By 1838, the population shrank enough to lose its pueblo status and was ruled by a Juez de Paz as a partition of the Los Angeles District until San Diego was incorporated as a city under U.S. rule.
The following are the Juez de Paz and Alcades (Justices of the Peace and Mayors) of San Diego. In this table "suplente" means substitute.