First colonized by the Spanish , the islands came under British control in the early 19th century .