Contra Costa County, California
In 1821 Mexico gained independence from Spain. While little changed in ranchero life, the Mexican War of Independence resulted in the secularization of the missions with the re-distribution of their lands, and a new system of land grants under the Mexican Federal Law of 1824. Mission lands extended throughout the Bay Area, including portions of Contra Costa County. Between 1836 and 1846, during the era when California was a province of independent Mexico, the following 15 land grants were made in Contra Costa County.
Mexican–American War
The Mexican Army emerged from the war of independence (1810–1821) as a weak and divided force. Before the war with the United States, the military faced both internal and foreign challenges. The Spanish still occupied the coastal fortress of San Juan de Ulúa, and Spain did not recognize Mexico's independence, so that the new nation was at risk for invasion. In 1829, the Spanish attempted to reconquer their former colony and Antonio López de Santa Anna became a national hero defending the homeland. The army had a set of privileges ("fueros"), established in the colonial era, that gave it jurisdiction over many aspects of its affairs. In general, the military supported conservative positions, advocating for a strong central government and upholding privileges of the military and the Catholic Church.