Spanish attempts to reconquer Mexico
Mexican independence was officially achieved on September 27, 1821, under the Treaty of Córdoba. Spain did not recognize the treaties, arguing that the viceroy Juan O'Donojú had no authority to recognize the independence of any overseas province. This situation was dangerous to the newly acquired independent status of the nation, which had not yet been recognized by any of the European powers that could support it, and the threat of Spanish reconquest was a constant worry to the leaders of the nascent regime. On May 13, 1822 decrees were issued by the government to imprison anyone who conspired against Mexico's independence.
History of the west coast of North America
After the Spanish possession now known as Mexico (first known as "América Septentrional" or "Northern America") won its War of Independence from Spain in 1821, Mexico initially retained Spain's missions and settlements along the Pacific coast, and continued Spain's claims to territory as far north as today's border between California and Oregon. In the 1830s, Mexico ended Church control of the missions in California and opened the land to secular development, particularly ranching. By the 1840s, there were small Mexican settlements at San Diego, Los Angeles, San Francisco, and the territorial capital at Monterey. These settlements primarily traded cattle hides and tallow with American and European merchant vessels. This period is vividly portrayed in Bostonian Richard Henry Dana, Jr.'s famous seafaring memoir, "Two Years Before the Mast" and the culture of the great Mexican landowners of this period is often harked back to as exemplifying the height of California's romantic pastoral era. Mexican control of the territory ended after only 25 years, when attempts by local Mexican officials to expropriate the property of American ranchers and drive them out of California in the winter lead to the successful uprising known as the Bear Flag Revolt.