After the defeat of Spain in the Peninsular War and the abdication King Ferdinand VII, the Spanish colonial government of the Viceroyalty of the Río de la Plata, present-day Argentina, Bolivia, Chile, Paraguay and Uruguay, became greatly weakened. Without a rightful king in the Spanish throne to render the office of the Viceroy as legitimate, the right of Viceroy Baltasar Hidalgo de Cisneros to govern came under fire. The local elites, tired of the Spanish trade restrictions and taxes, seized the opportunity and during the May Revolution of 1810, removed Cisneros and created the first local government, the Primera Junta.