The Second Battle of Huachi was a confrontation that occurred on 12 September 1821 between pro-independence troops led by General Antonio José de Sucre and Royalist troops led by General Melchor Aymerich, president of the Real Audiencia of Quito.
The Spanish, who followed closely, positioned themselves to do battle in a field called Huachi, where they had already defeated Guayaquil forces a year before.
General José Mires allowed the Albion and Guayaquil battalions to pursue the Royalists, but they were attacked by the Royalist cavalry and the infantry who turned around and encircled the Patriot battalions.
Generals Mires and Sergeant Major Antonio Martínez de Pallares were captured.
[6] Sucre, who was wounded and dismounted, was on the verge of being taken prisoner in the rout, but was just in time saved by his aide-de-camp, the Chilean officer Manuel Jordán Valdivieso, who pulled him on the back of his horse and crossed the enemy lines.