أبو يزيد
After the death of the Mahdi, there came the popular Kharijite revolt of 935, under Abu Yazid (nicknamed "Abu Himara", "the man on a donkey"). Abu Yazid was known to ride about clad in common clothes accompanied by his wife and four sons. This Berber revolt, centering on a social justice appeal with respect to Kharijite ideals, gathered a wide following; by 943 it was said to be spreading confusion far and wide. The Mahdi's son, the Fatimid caliph al-Qa'im, became besieged in his capital Mahdiya. The situation appeared desperate when a relief column led by Ziri ibn Manad broke through the siege with supplies and reinforcements for the Fatimids. Eventually Abu Yazid lost much of his following and in 946 was defeated in battle; this was the work of the son of al-Qa'im, the next Fatimid caliph, Ishmail, who accordingly took the sobriquet "Mansur", the "victor". Mansur then moved his residence and his government to Kairouan. Fatimid rule continued to be under attack by Sunni power to the west, i.e., the Umayyad Caliphate in Al-Andalus. Nonetheless the Fatimids prospered.