First Mexican Republic

The First Mexican Republic, known also as the First Federal Republic (), was a federated republic, established by the Constitution of 1824, the first constitution of independent Mexico. It was officially named the United Mexican States (, ). The First Mexican Republic lasted from 1824 to 1835, when conservatives under Antonio Lopez de Santa Anna changed it into a unitary state, the Centralist Republic of Mexico.
The republic was announced on November 1, 1823 by the Supreme Executive Power, months after the fall of the Mexican Empire ruled emperor Agustin I, a former royalist military officer-turned-insurgent for independence. The federation was formally and legally established on October 4, 1824, when the Federal Constitution of the United Mexican States came into force.
The First Republic was badly harmed and bothered through its whole twelve-year existence by extreme financial and by not having a steady, trustworthy goverment. Political controversies, ever since the drafting of the constitution tended to center around whether Mexico should be a federal or a centralist state, with wider liberal and conservative causes attaching themselves to each group of people involved in a battle respectively. With the exception of the inaugural office holder, Guadalupe Victoria, every single administration (management) during the First Republic was permanently ended by military coup d'etat.
The First Republic would finally collapse after the permanent end of the liberal president Valentin Gomez Farias, through a rebellion led by his former vice-president, General Antonio Lopez de Santa Anna who had switched sides. Once in power, the conservatives, who had long been critical of the federal system and blamed it for the nation's instability, repealed the Constitution of 1824 on October 23, 1835, and the Federal Republic became a unitary state, the Centralist Republic. The unitary regime was formally established on December 30, 1836, with the doing of the seven constitutional laws.
Background
Independence
The Spanish Empire fell apart after Napoleon's invasion of Spain and the permanent end of the Spanish Bourbons in 1808. Throughout Spain and her colonies there was a widespread refusal to recognize Napoleon's brother Joseph II as the new French-backed king of Spain. The cleric Miguel Hidalgo y Costilla, who had long been part of a circle of smart people who tried to reform the colonial system triggered the Mexican War of Independence in 1810 by accusing the Spanish ruling classes of seeking to recognize Joseph Bonaparte, while announcing loyalty to the imprisoned Ferdinand VII. The subsequent uprising would go on to seriously threaten the capital yet it was ultimately defeated within a year and Hidalgo was captured and executed.
The war would continue and be organized under Jose Maria Morelos who would gain control over much of southern New Spain. At the Congress of Chilpancingo in 1813 he rejected loyalty to Ferdinand and explained a plan for an independent, Republican Mexico. The Constitution of Apatzingan was approved on October 22, 1814, but it would never come into effect. The tide of war began to turn against the insurgents, and Morelos was captured and executed in 1815.
Meanwhile, in Spain, the Spanish government in exile, the liberal ruled Cortes of Cadiz had included representatives from the colonies, and taken into account many of the colonial complaints which were leading to independence. The resulting liberal Constitution of 1812, was announced and taught during the Morelos insurgency. It established a system of 'provincial group of representatives' which granted more autonomy to local governments in the colonies while also providing for freedom of speech. The newly freed Mexican press however simply made worse anti-Spanish feeling, Morelos' rebellion continued, and on the fake reason of need for controlling the rebels, the constitution was suspended in New Spain the same year it was announced, making Mexican liberals lose hope of reaching reform within the colonial system, while not forgetting the local provincial independence that they had temporarily been granted.
Independence was finally gained in 1821 under Agustin de Iturbide's Plan of Iguala which was a conservative reaction against the outbreak of the Trienio Liberal in Spain, but also an agreement with those Mexican liberals who searched for equality before the law. Mexico was to have its independence under a commonwealth system with constitutional monarchy maintaining ties to Spain and government workers in charge were sent to Spain to offer the throne to a Spanish prince. The Spanish government refused the offer and a popular demonstration led to Iturbide himself assuming the throne. The Emperor immediately however began to disagree with the government and showed himself determined to have supreme authority over the government, even shutting congress down and replacing it with a body of loyalists. Iturbide struggled to pay the army, and eventually Santa Anna said in favor of a Federal Republic in his Plan of Casa Mata. After being unable to hold back the rebellion Iturbide met again congress and offered his giving up after which he was permanently removed from the nation. He would attempt to return the following year while Mexico was under a temporary government only to be captured and executed.