After the Bourbons came to power they reformed the Spanish Empire and along the way created the Viceroyalty of New Granada.