 The Byzantine rule lasted until 831, when the Aghlabid Arabs, disembarked in Mazara del Vallo.The Arabs captured Palermo after a year-long siege and made it the capital city of their Sicilian emirate.After the Byzantines were betrayed by admiral Euphemius who fled to Tunisia in 827 and begged the Aghlabid leader Ziyadat Allah to help him there was a Muslim conquest of Sicily, putting in place the Emirate of Sicily.