In November 1823, Riva Agüero, who plotted with the Royalists against Bolívar, was betrayed by his officers to Bolívar and exiled from Peru. While Bolívar was bedridden with fever over the first two months of 1824, Tagle defected to the Royalists with the garrison and city of Callao and briefly took Lima. In response, the Peruvian congress named Bolívar dictator of Peru on 10 February 1824. Bolívar moved to northern Peru in March and began assembling an army. His repeated demands for additional men and money strained his relationship with Santander.
In November 1823, Riva Agüero, who plotted with the Royalists against Bolívar was betrayed by his officers to Bolívar and exiled from Peru. While Bolívar was bedridden with fever over the first two months of 1824, Tagle defected to the Royalists with the garrison and city of Callao and briefly took Lima. In response, the Peruvian congress named Bolívar dictator of Peru on 10 February 1824. Bolívar moved to northern Peru in March and began assembling an army. His repeated demands for additional men and money strained his relationship with Santander.