Mexico gained independence from the colonial Viceroyalty of New Spain in 1821. In 1844 the Mexican Alta California Governor Juan Alvarado granted Rancho Potrero de San Francisco to Francisco and Ramon de Haro, the 17-year-old twin sons of Don Francisco de Haro, who was then "alcalde" (mayor) of Yerba Buena (present day San Francisco).