The town remained under Byzantine control until its Muslim conquest in the late 7th century. Successive waves of Umayyad attacks into Byzantine North African territory over 15 years wore down the smaller and less motivated imperial forces, until finally Umayyad troops laid siege to the city of Caesarea and, although the defenders were resupplied by Byzantine fleets, finally overwhelmed it. Much of the Byzantine nobility and officials fled to other parts of the Empire, while most of the remaining Roman and semi-Roman Berber population accepted Islamic rule which granted them protected status.