In 332 Abu Yazid marched northwards at the head of most of the Zenata tribe of the south, hereditary rivals of the Katama, and many other Berbers. In rapid succession he took Baghai, Tabassa, Mermajenna, and Laribus. The Fatimid forces tried to prevent his advance upon Baja, but were repulsed. It was the story of Abu ʿAbdullah over again, but this time it was a Berber at the head of Berber tribes, and the religious motive assigned was the restoration of the primitive ideals of Islam, the democratic election of the Khalif, and all the reactionary programme of the Kharijites which was, and is, the most congenial to the nomadic tribes of Africa and Arabia. We have seen very much the same programme in the history of the Sanusi in recent times. The successful repulse of the Fatimid army made a great impression, and all the Zanata tribes of Zab, the Hwaras of the Aures, and many others, rallied round Abu Yazid. At the head of a large, but undisciplined force, he marched towards Kairawan: on the way he met a Fatimid army, but this time suffered defeat. It was, however, no more than a temporary check; he soon rallied, took Raqada, and then pressed on to Kairawan, defeated the forces of the Fatimid Khalif, and captured the city. Al-Qaʾim was obliged to take refuge in al-Mahadiya, which Abu Yazid forthwith besieged. At this juncture the Katama and Sanhaja tribes came in mass to relieve the city, and Abu Yazid’s followers, demoralised by the steady resistance of the defenders, were obliged to retire. As they retreated al-Qaʾim followed, and was soon able to recover the whole of Tunisia, but after an interval Abu Yazid rallied and laid siege to the town of Susa.

At this juncture al-Qaʾim died, and was succeeded by his son, who took the name al-Mansur (the protected).

Al-Qaʾim had accompanied his father, the Mahdi, in his flight from Syria, and had proved himself a trusty and competent general before his accession to the throne. He figures in history solely as a fighting man: we hear nothing of any development either in the Ismaʿilian sect or in the organization of the Fatimid state.


VII
THE THIRD FATIMID KHALIF, AL-MANSUR

(A.H. 335-342 = A.D. 946-953)

The stability of the Fatimid Khalifate was problematical when al-Qaʾim died at the height of Abu Yazid’s rebellion. The first task of the new Khalif al-Mansur was to relieve Susa, and he was fortunate enough to inflict a severe defeat on Abu Yazid, and to drive him back to the mountains of Kiana in the extreme west of Ifrikiya. There a stubborn struggle followed which lasted a whole year, but was terminated by the final defeat and complete rout of the insurgent Berbers, Abu Yazid himself being mortally wounded in the final engagement and dying soon after.

This revolt, however, begins the decay of Fatimid authority in the west. The Zanata tribes of Maghrawa and B. Ifrene were able to form a separate state in the neighbourhood of Tlemsen, whilst the Umayyads of Spain established a colony at Fez, where they placed the descendants of Musa ibn Abi l-Afia and his followers, Syrian Arabs who had been invited to Spain but had become obnoxious, and whom it was advisable to segregate from the earlier settlers in Spain. Central Maghrab, roughly corresponding to the greater part of Algeria, was held by the Sanhaja tribe, steady allies and supporters of the Fatimid Khalifate, under the government of Ziri b. Menad, who built the town of Achir as his capital.