In 1545, Spain founded the city of Potosí, next to Cerro Rico which provided vast quantities of silver for the Spanish Empire and was worked by the local Indigenous people. In 1776, Upper Peru was governed by the newly created Viceroyalty of the Río de la Plata with its capital in Buenos Aires. In the early 1780s, local indigenous people from the highlands took part in widespread uprisings, most notably the revolt of Rebellion of Túpac Amaru II. The rebels hoped to restore the Inca Empire, however, the revolts were defeated by Spanish forces.