Question: how long has mexico had a federal republic

title: History of Mexico
text: 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 . 

Answer: answer: 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. Mexico continues to be constituted as a federated republic, under the Mexican Constitution of 1917.
answer: In 1824, the Republic of Mexico, established under a federal constitution was founded following a monarchy period that lasted from 1821 to 1823.  Mexico continues to be constituted as a federated republic , under the Mexican Constitution of 1917.