In the eighteenth century, a burgeoning population, among other factors, led the Spanish to split the viceroyalty of Peru apart so that it could be governed more effectively. This move resulted in two new viceroyalties: New Granada and Río de la Plata.