During this period Trinidad was an island province belonging to the Viceroyalty of New Spain, together with Central America, present-day Mexico and what would later become the southwestern United States. In 1757 the capital was moved from San José de Oruña to Puerto de España (modern Port of Spain) following several pirate attacks. However the Spanish never made any concerted effort to colonise the islands; Trinidad in this period was still mostly forest, populated by a few Spaniards with a handful of slaves and a few thousand Amerindians. Indeed, the population in 1777 was only 1,400, and Spanish colonisation in Trinidad remained tenuous.