After Rafael Carrera returned from exile in 1849, the Salvadoran ruler, Doroteo Vasconcelos, granted asylum to the Guatemalan liberals, who harassed the Guatemalan government in several different forms: Don José Francisco Barrundia did it through a liberal newspaper that had been established with that specific goal; Vasconcelos gave support during a whole year to a rebel faction "La Montaña", in eastern Guatemala, providing and distributing money and weapons.
Under that circumstance, the Salvadoran head of state started a campaign against the conservative Guatemalan regime, inviting Honduras and Nicaragua to participate in the alliance; only the Honduran government led by Don Juan Lindo accepted.
On 29 January, a 500-man contingent entered through Piñuelas, Agua Blanca and Jutiapa, led by General Vicente Baquero, but the majority of the invading force marched from Metapán.
Guatemalan historian Francis Polo Sifontes describes the scene after the battle: The 500 men of the rearguard under Colonel Navas were still fresh and pursued what was left of the Allied army, which desperately fled for the borders of their respective countries.
The final count of the Allied losses were 528 dead, 200 prisoners, 1,000 rifles, 13,000 rounds of ammunition, many pack animals and baggage, 11 drums and seven artillery pieces.
Polo Sifontes also noted: "...President Vasconcelos sought refuge in El Salvador, while two Generals mounted on the same horse were seen crossing the Honduran border."
Carrera regrouped his army and crossed the Salvadoran border, occupying Santa Ana, before he received orders from the Guatemalan President, Mariano Paredes, to return to Guatemala, since the Allies were requesting a cease-fire and a peace treaty.