The Spanish Caribbean trade had a network of four main ports: Vera Cruz; Cartagena; Porto Bello; and the main port through which all the trade of those three ports came, Havana. On 22 November 1739 the British captured Porto Bello in the Viceroyalty of New Granada. The British attack was part of an attempt to damage the Spanish economy. The poorly defended port was attacked by six British ships of the line under the command of Vice-Admiral Edward Vernon. The relative ease of this capture, although the city was abandoned immediately after the battle, caused jubilation in Britain.