how long has mexico had a federal republic
History of Mexico After a protracted struggle (1810–21) for independence, New Spain became the sovereign nation of Mexico, with the signing of the Treaty of Córdoba. A brief period of monarchy (1821–23), called the First Mexican Empire, was followed by the founding of the Republic of Mexico, established under a federal constitution in 1824. Legal racial categories were eliminated, abolishing the system of castas. Slavery was not abolished at independence in 1821 or with the constitution in 1824, but was eliminated in 1829. Mexico continues to be constituted as a federated republic, under the Mexican Constitution of 1917.