أبو يزيد
The two armies remained entrenched around Kairouan for the next two months, engaging in frequent clashes. Abu Yazid tried several times to take the city gates by assault, but al-Mansur had established smaller fortified camps to protect them. Abu Yazid tried to force the Fatimids to withdraw by sending his son to raid the environs of al-Mahdiya, where many of the Kutama had settled their families; but although al-Mansur sent some troops to shield them, he refused to move his main army. While al-Mansur was slowly building up his numerically inferior forces with contingents from the remote provinces of the Fatimid empire, Abu Yazid's support began to dwindle as his followers abandoned his camp; only the Hawwara and Banu Kamlan Berbers remained steadfastly loyal to him. With increasing confidence, al-Mansur marched his army out to provoke a pitched battle, but Abu Yazid refused. Finally, on 13 August the Fatimids stormed the rebel camp, and Abu Yazid with his troops broke and fled.