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 Antonio de' Medici Bernardo Antonio de' Medici Bernardo Antonio de' Medici (1476 – 1552) was an Italian bishop and diplomat. He was considered as one of the leading ambassadors of Cosimo I de' Medici. He was the son of Antonio de' Medici and Selvaggia di Felice del Beccuto. He was bishop of Forlì between 1528 and 1551, before being transferred to the diocese of Cassano on 23 October 1551. In 1537 Cosimo I gave him the delicate mission of getting confirmation of his right to the duchy (which had passed to him after Alessandro de' Medici's death) from Charles V, Holy Roman Emperor.