أبو يزيد
After the death of the Mahdi, there came the Kharijite revolt of 935, which under Abu Yazid (nicknamed "the man on a donkey") was said by 943 to be spreading chaos far and wide. The Mahdi's son, the Fatimid caliph al-Qa'im, became besieged in Mahdiya. Eventually Abu Yazid was defeated by the next Fatimid caliph, Ishmail, who then moved his residence to Kairouan. Fatimid rule continued to be under attack from Sunni Islamic states to the west, e.g., the Umayyad Caliphate in Al Andalus.