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.
Fredonian Rebellion
After winning independence in 1821, several of Spain's colonies in the New World joined together to create a new country, Mexico. The country divided itself into several states, and the area known as Mexican Texas became part of the border state Coahuila y Tejas. To assist in governing the large area, the state created several departments; all of Texas was included in the Department of Béxar. The department was further subdivided into municipalities, which were each governed by an alcalde, similar to a modern-day mayor. A large portion of East Texas, ranging from the Sabine to the Trinity Rivers and from the Gulf Coast to the Red River, became part of the municipality of Nacogdoches. Most residents of the municipality were Spanish-speaking families who had occupied their land for generations. An increasing number were English-speaking residents who had immigrated illegally during the Mexican War of Independence. Many of the immigrants were adventurers who had arrived as part of various military filibustering groups, which had attempted to create independent republics within Texas during Spanish rule.