 The crown established the in 1549.Ultimately the kingdom became part of the Viceroyalty of New Granada first in 1717 and permanently in 1739.After several attempts to set up independent states in the 1810s, the kingdom and the viceroyalty ceased to exist altogether in 1819 with the establishment of the United Provinces of New Granada.