Who took control of the island in the 9th century