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 de Izaguirre de los Reyes him as Archbishop of La Plata o Charcas. He served as Archbishop of La Plata o Charcas until his death on November 16, 1668. While bishop, he was the principal consecrator of Gabriel de Guilléstegui, Bishop of Paraguay. Bernardo de Izaguirre de los Reyes Bernardo de Izaguirre de los Reyes (died November 16, 1668) was a Roman Catholic prelate who served as Archbishop of La Plata o Charcas (1669–1670), Bishop of Cuzco (1662–1669), and Bishop of Panamá (1654–1659). Bernardo de Izaguirre de los Reyes was selected on July 28, 1654 and confirmed on April 21, 1655 by Pope Alexander VII