In 1542, the region of New Granada, along with all other Spanish possessions in South America, became part of the Viceroyalty of Peru, with its capital in Lima. In 1547, New Granada became the Captaincy-General of New Granada within the viceroyalty.