After a struggle between various pretenders to the viceroyalty, in which some pitched battles were fought, Mahommed b.
These two, afterwards joined by the primate's old rival Lord Shannon, and usually supported by the earl of Kildare, regained control of affairs in 1758, during the viceroyalty of the duke of Bedford.
In 1620 Buenos Aires was separated from the authority of the government established at Asuncion, and was made the seat of a government extending over Mendoza, Santa Fe, Entre Rios and Corrientes, but at the same time remained like the government of Paraguay at Asuncion, and that of the province of Tucuman, which had Cordoba as its capital, subject to the authority of the viceroyalty of Peru.
The continual encroachments of the Portuguese at length led the Spanish government to take the important step of making Buenos Aires the seat of a viceroyalty with jurisdiction over the territories of the present republics of Bolivia, Paraguay, Uruguay and the Argentine Confederation (1776).
The combined forces of Buenos Aires and Chile defeated the Spaniards at Chacabuco in 1817, and at Maipu in 1818; and from Chile the victorious general Jose de San Martin led his troops into Peru, where on the 9th of July 1821, he made a triumphal entry into Lima, which had been the chief stronghold of the Spanish power, having from the time of its foundation by Pizarro been the seat of government of a viceroyalty which at one time extended to the river Plate.