From the mid 1600s Bermudian salt collectors began seasonally visiting the islands, later settling more permanently with their African slaves. For several decades around the turn of the 18th century, the islands became popular pirate hideouts. During the Anglo-French War (1778–1783) the French captured the archipelago in 1783, however it was later confirmed as British colony with the Treaty of Paris (1783). After the American War of Independence (1775–1783), many Loyalists fled to British Caribbean colonies, also bringing with them African slaves. They developed cotton as an important cash crop, but it was superseded by the development of the salt industry, with the labour done by African slaves forcibly imported from Africa or the other Caribbean islands and their descendants, who soon came to outnumber the European settlers.