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.
New Mexico
Inhabited by Native Americans for many thousands of years before European exploration, it was colonized by the Spanish in 1598 as part of the Imperial Spanish viceroyalty of New Spain. In 1563, it was named Nuevo México after the Aztec Valley of Mexico by Spanish settlers, more than 250 years before the establishment and naming of the present-day country of Mexico; thus, the present-day state of New Mexico was "not" named after the country today known as Mexico. After Mexican independence in 1824, New Mexico became a Mexican territory with considerable autonomy. This autonomy was threatened, however, by the centralizing tendencies of the Mexican government from the 1830s onward, with rising tensions eventually leading to the Revolt of 1837. At the same time, the region became more economically dependent on the United States. At the conclusion of the Mexican–American War in 1848, the United States annexed New Mexico as the U.S. New Mexico Territory. It was admitted to the Union as the 47th state on January 6, 1912.