Viceroyalty of New Granada
In 1775, Lieutenant Tomás O'Neil, a Spaniard of Irish descent, was given military command of the islands and, in 1790, was named governor. He requested the transfer of the islands to the jurisdiction of the Viceroyalty of New Granada, which was granted in 1803. That year, Spain assigned the islands, together with the province of Veraguas (western Panama and the east coast of Nicaragua), to the Viceroyalty of New Granada. The territory was administered from the province of Cartagena. Soon, trade links with Cartagena were greater than those with Guatemala.