In 1816, the United Kingdom annexed the islands, ruling them from the Cape Colony in South Africa.