Disputed between France and the United Kingdom for most of the 18th century , the island was ceded to the latter in 1783 .