In May 1823, following Iturbide's March abdication as emperor, Santa Anna was sent to command in Yucatán.
At the time, Yucatán's capital of Mérida and the port city of Campeche were in conflict.
Yucatán's closest trade partner was Cuba, still a Spanish colony.
Santa Anna took it upon himself to plan a landing force from Yucatán in Cuba, which he envisioned would result in Cuban colonists welcoming their liberators and most especially Santa Anna.
A thousand Mexicans were already on ships to sail to Cuba when word came that the Spanish were reinforcing their colony, so the invasion was called off.

Former insurgent general Guadalupe Victoria, a liberal federalist, became the first president of the Mexican republic in 1824, following the creation of the Federalist Mexican Constitution of 1824.
He came to the presidency with little factional conflict and he served out his entire four-year term.
However, the election of 1828 was quite different, with considerable political conflict in which Santa Anna became involved.
Even before the election, there was unrest in Mexico, with some conservatives affiliated with the Scottish Rite Masons plotting rebellion.
The so-called Montaño rebellion in December 1827 called for the prohibition of secret societies, implicitly meaning liberal York Rite Masons, and the expulsion of the U.S. minister in Mexico, Joel Roberts Poinsett, a promoter of federal republicanism in Mexico.
Although Santa Anna was believed to be a supporter of the Scottish Rite conservatives, in the Montaño rebellion eventually he threw his support to the liberals.
In his home state of Veracruz, the governor had thrown his support to the rebels, and in the aftermath of the rebellion's failure, Santa Anna as vice-governor stepped into the governorship.

In 1828, Santa Anna supported the hero of the insurgency, Vicente Guerrero, who was a candidate for the presidency.
Another important liberal, Lorenzo de Zavala, also supported Guerrero.
Manuel Gómez Pedraza won the indirect elections for the presidency, with Guerrero coming in second.
Even before all the votes had been counted in September 1828, Santa Anna rebelled against the election results in support of Guerrero.
Santa Anna issued a plan at Perote that called for the nullification of the election results, as well for a new law expelling Spanish nationals from Mexico, believed to be in league with Mexican conservatives.
Santa Anna's rebellion initially had few supporters, southern Mexican leader Juan Álvarez joined Santa Anna's rebellion, and Lorenzo de Zavala, governor of the state of Mexico, under threat of arrest by the conservative Senate, fled to the mountains and organized his own rebellion against the federal government.
Zavala brought the fighting into the capital, with his supporters seizing an armory, the Acordada.
In these circumstances, president-elect Gómez Pedraza resigned and soon after left the country.
This cleared the way for Guerrero to become president of Mexico.
Santa Anna gained prominence as a national leader in his role to oust Gómez Pedraza and as a defender of federalism and democracy.
An explanation for Santa Anna's support of Guerrero is that Gómez Pedraza had been in favor of Santa Anna's proposed invasion of Cuba, if successful, and if not, "Mexico might rid himself of an undesirable pest, namely Santa Anna."

In 1829, Santa Anna made his mark in the early republic by leading forces that defeated a Spanish invasion to reconquer Mexico.
Spain made a final attempt to retake Mexico, invading Tampico with a force of 2,600 soldiers.
Santa Anna marched against the Barradas Expedition with a much smaller force and defeated the Spaniards, many of whom were suffering from yellow fever.
The defeat of the Spanish army not only increased Santa Anna's popularity but also consolidated the independence of the new Mexican republic.
Santa Anna was declared a hero.
From then on, he styled himself "The Victor of Tampico" and "The Savior of the Patria."
His main act of self-promotion was to call himself "The Napoleon of the West."

In a December 1829 coup, Vice-Pr
In May 1823, following Iturbide's March abdication as emperor, Santa Anna was sent to command in Yucatán. At the time, Yucatán's capital of Mérida and the port city of Campeche were in conflict. Yucatán's closest trade partner was Cuba, still a Spanish colony. Santa Anna took it upon himself to plan a landing force from Yucatán in Cuba, which he envisioned would result in Cuban colonists welcoming their liberators and most especially Santa Anna. A thousand Mexicans were already on ships to sail to Cuba when word came that the Spanish were reinforcing their colony, so the invasion was called off.
Former insurgent general Guadalupe Victoria, a liberal federalist, became the first president of the Mexican republic in 1824, following the creation of the Federalist Mexican Constitution of 1824. He came to the presidency with little factional conflict and he served out his entire four-year term. However, the election of 1828 was quite different, with considerable political conflict in which Santa Anna became involved. Even before the election, there was unrest in Mexico, with some conservatives affiliated with the Scottish Rite Masons plotting rebellion. The so-called Montaño rebellion in December 1827 called for the prohibition of secret societies, implicitly meaning liberal York Rite Masons, and the expulsion of the U.S. minister in Mexico, Joel Roberts Poinsett, a promoter of federal republicanism in Mexico. Although Santa Anna was believed to be a supporter of the Scottish Rite conservatives, in the Montaño rebellion eventually he threw his support to the liberals. In his home state of Veracruz, the governor had thrown his support to the rebels, and in the aftermath of the rebellion's failure, Santa Anna as vice-governor stepped into the governorship.
In 1828, Santa Anna supported the hero of the insurgency, Vicente Guerrero, who was a candidate for the presidency. Another important liberal, Lorenzo de Zavala, also supported Guerrero. Manuel Gómez Pedraza won the indirect elections for the presidency, with Guerrero coming in second. Even before all the votes had been counted in September 1828, Santa Anna rebelled against the election results in support of Guerrero. Santa Anna issued a plan at Perote that called for the nullification of the election results, as well for a new law expelling Spanish nationals from Mexico, believed to be in league with Mexican conservatives. Santa Anna's rebellion initially had few supporters, southern Mexican leader Juan Álvarez joined Santa Anna's rebellion, and Lorenzo de Zavala, governor of the state of Mexico, under threat of arrest by the conservative Senate, fled to the mountains and organized his own rebellion against the federal government. Zavala brought the fighting into the capital, with his supporters seizing an armory, the Acordada. In these circumstances, president-elect Gómez Pedraza resigned and soon after left the country. This cleared the way for Guerrero to become president of Mexico. Santa Anna gained prominence as a national leader in his role to oust Gómez Pedraza and as a defender of federalism and democracy. An explanation for Santa Anna's support of Guerrero is that Gómez Pedraza had been in favor of Santa Anna's proposed invasion of Cuba, if successful, and if not, "Mexico might rid himself of an undesirable pest, namely Santa Anna."
In 1829, Santa Anna made his mark in the early republic by leading forces that defeated a Spanish invasion to reconquer Mexico. Spain made a final attempt to retake Mexico, invading Tampico with a force of 2,600 soldiers. Santa Anna marched against the Barradas Expedition with a much smaller force and defeated the Spaniards, many of whom were suffering from yellow fever. The defeat of the Spanish army not only increased Santa Anna's popularity but also consolidated the independence of the new Mexican republic. Santa Anna was declared a hero. From then on, he styled himself "The Victor of Tampico" and "The Savior of the Patria." His main act of self-promotion was to call himself "The Napoleon of the West."
In a December 1829 coup, Vice-Pr
Antonio López de Santa Anna