Battle of Ayacucho own. The royalists in each viceroyalty, however, took different paths. In New Spain, royalists, after defeating the insurgents, proclaimed a negotiated separation from Liberal Spain through the Plan of Iguala, which they negotiated with the remaining patriots, and the Treaty of Córdoba, which they negotiated with the new head of government, Juan O'Donojú. In Peru Viceroy Joaquín de la Pezuela was discredited after a royalist expedition to Chile under Mariano Osorio was defeated and advances in Peru were made by José de San Martín. The viceroy was overthrown on 29 January 1821, in Asnapukyu "(Aznapuquio)", in a coup by General
Battle of Quechereguas Higgins secretly made the crossing, marched rapidly to the north and placed himself at the site of Quechereguas, in between the Royalist force and the road to Santiago. Gabino Gaínza responded by attacking the next day; O' Higgins' men firmly repulsed the attack, forcing the Royalists to fall back on Talca once more. Battle of Quechereguas The battle of Quechereguas occurred on 8 April 1814, during the War of Chilean Independence. The Royalists had taken the key Patriot town of Talca in March, 1814, and an army, under the command of Gabino Gaínza, now threatened to advance on the Patriot