The Viceroyalty of the Río de la Plata was the last and shortest-lived viceroyalty created by Spain in 1776. It included present-day Argentina, Bolivia, Paraguay, and Uruguay. The first viceroy, Pedro de Cevallos, organized a new government in Buenos Aires and reclaimed Colonia from Portugal before being replaced a few months later. However, the viceroyalty faced economic problems as silver production from Potosí declined and Spain withdrew military support after losses to Britain. This led the Creole population to declare independence from Spain and end the viceroyalty in 1810.