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
Army of the North (France) him. Jean-Baptiste Jourdan won the Battle of Wattignies in October. On 17–18 May 1794, the Army of the North won a victory at the Battle of Tourcoing while under the temporary leadership of Joseph Souham. The right wing of the army fought under Jourdan in an important victory at the Battle of Fleurus on 26 June. Soon after this, the Allied position in Flanders collapsed, leading to Austria's loss of Belgium and the extinction of the Dutch Republic in the winter of 1794-1795. During this period, the army was engaged in mopping up operations and sieges. On 25 October 1797,