Viceroyalty of the Río de la Plata
In 1776 the Captaincy General of Chile suffered the loss of the province of Cuyo, including the cities of Mendoza, San Juan, and San Luis, due to the creation of the Viceroyalty of the Río de la Plata.