 Crete was subjected to an attack by Vandals in 467, the great earthquakes of 365 and 415, a raid by Slavs in 623, Arab raids in 654 and the 670s, and again in the 8th century.In , the Emperor Leo III the Isaurian transferred the island from the jurisdiction of the Pope to that of the Patriarchate of Constantinople.In the 820s, after 900 years as a Roman, and then Eastern Roman (Byzantine) island, Crete was captured by Andalusian Muladis led by Abu Hafs, who established the Emirate of Crete.