In 1820, Patriots in
Guayaquil had organized the successful
October 9 Revolution, which led to the establishment of the
Free Province of Guayaquil. The Guayaquil revolutionaries wanted to liberate the rest of the
Royal Audiencia of Quito and had raised an army that marched to the capital
Quito. After their victory at the
Battle of Camino Real on 9 November 1820, Guayaquil's troops advanced further from
Guaranda, entering the inter-Andean valley to the north towards Quito. However, the Royalists had regrouped and awaited the Patriot army in the central highlands of Ecuador in the Huachi sector, outside the town of
Ambato, in today's
Tungurahua province. == The battle ==