Trinidad was founded on December 23, 1514 by Diego Velázquez de Cuéllar under the name Villa De la Santísima Trinidad. Trinidad is one of the seven original cities of Cuba. It was founded in on the coast, but after being attacked by pirates was removed inland and a port town named Casilda served the city in its place. Trinidad was thrice sacked by English buccaneers - in 1642, 1654 and 1702; and in the following years, up to and for a time after the peace of Utrecht (1713), it maintained ships and soldiers. Indeed, throughout the first half of the 18th century it was on a continuous war footing against English corsairs, making reprisals on British ships and thriving at the same time on a large contraband trade with Jamaica and other foreign colonies. Trinidad's main exports were sugar and molassas. It was not until 1818 that Casilda was opened to legal commerce to national and foreign flagged ships.