In 1671, the privateer Henry Morgan, licensed by the English government, sacked and burned the city of Panama – the second most important city in the Spanish New World at the time. In 1717 the viceroyalty of New Granada (northern South America) was created in response to other Europeans trying to take Spanish territory in the Caribbean region. The Isthmus of Panama was placed under its jurisdiction. However, the remoteness of New Granada's capital, Santa Fe de Bogotá (the modern capital of Colombia) proved a greater obstacle than the Spanish crown anticipated as the authority of New Granada was contested by the seniority, closer proximity, and previous ties to the viceroyalty of Lima and even by Panama's own initiative. This uneasy relationship between Panama and Bogotá would persist for centuries.