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
Bernardo Gutiérrez de Lara Bernardo Gutiérrez de Lara Bernardo (José Bernardo Maximiliano Gutiérrez de Lara) (August 20, 1774 – May 13, 1841) was an advocate and organizer of Mexican independence and the first constitutional governor of the state of Tamaulipas, and a native of Revilla, today Ciudad Guerrero, Mexico. Gutiérrez de Lara was obsessed with the idea of freeing Mexico from Spain, and he began by recruiting and arming twenty-one men in Texas. Then together with José Menchaca, he spoke with the Indians and convinced them to fight with him against the Spanish. After the suppression of an 1811 insurrection in Nuevo Santander, Gutiérrez