 Guirior was replaced as viceroy by Agustín de Jáuregui.He was eventually acquitted of the charges, but only after his death in 1788.In 1780 the new viceroy and the "visitador" were confronted with a series of rebellions involving not only the Indigenous, but also Mestizos and Criollos.