قد علمت أن إفريقية آل أمرها إلى الخليفة عبد المؤمن بن علي باني دولة الموحدين على يد المهدي محمد بن تومرت ومن القائمين بدعوة هذا المهدي أبو حفص عمر بن يحيى الهنتاتي يرجع نسبه إلى سيدنا عمر بن الخطاب رضي الله عنه وله القدم الراسخة في دولة عبد المؤمن والمواقف الشهيرة والمقامات الحميدة وتوفي سنة 575 ه ولما آلت الخلافة إلى يعقوب المنصور بن يوسف بن عبد المؤمن المتوفى سنة 595 ه استوزر أبا محمد عبد الواحد ابن الشيخ أبي حفص المذكور وابنه الآخر أبو سعيد ولاه إفريقية فدخلها واشتغل بتونس واستعمل أخاه أبا علي على المهدية ولم يتم له أمر وفي خلال تلك المدة وصل أبو زيد بن أبي حفص بن عبد المؤمن إفريقية واليا عليها بدل أبي سعيد وخرجت في تلك المدة المهدية وسائر الجهات القبلية عن أبي فلد المذكور واستولى عليها يحيى بن إسحاق الميورقي من بني غانية ثم استولى على تونس وقبض على أبي زيد المذكور في ربيع الأول من أول عام من المائة السابعة ولما آل أمر الخلافة للناصر بن المنصور المذكور بوفاة والده وبلغه ما حل بإفريقية توجه لها في عسكره واستصحب وزيره أبا محمد المذكور ودخل تونس ووجه وزيره المذكور للمهدية فأفتكها وغيرها من ابن غانية سنة 602 ه في أخبار طوال ودانت له البلاد ثم رجع الناصر لمحل خلافته واستخلف
You have learned that the affair of Ifriqiya came to the caliph ʿAbd al-Muʾmin ibn ʿAli, the builder of the Almohad dynasty, at the hand of the Mahdi Muhammad ibn Tumart. Among those who upheld the summons of this Mahdi was Abu Hafs ʿUmar ibn Yahya al-Hintati, whose lineage goes back to our master ʿUmar ibn al-Khattab, God be pleased with him. He had a firm footing in the dynasty of ʿAbd al-Muʾmin, famous stands and praiseworthy positions. He died in the year 575 AH. When the caliphate passed to Yaʿqub al-Mansur ibn Yusuf ibn ʿAbd al-Muʾmin, who died in the year 595 AH, he took as vizier Abu Muhammad ʿAbd al-Wahid, son of the said Shaykh Abu Hafs, and appointed his other son, Abu Saʿid, over Ifriqiya. He entered it and occupied himself with Tunis, and appointed his brother Abu ʿAli over al-Mahdiyya, but his affair did not succeed. In the course of that period Abu Zayd ibn Abi Hafs ibn ʿAbd al-Muʾmin arrived in Ifriqiya as governor over it in place of Abu Saʿid. In that period al-Mahdiyya and all the southern regions passed out of the hands of the said Abu Fald [?], and Yahya ibn Ishaq al-Mayurqi of the Banu Ghaniya took them; then he took Tunis and seized the said Abu Zayd in Rabiʿ al-Awwal of the first year of the seventh century. When the caliphate passed to al-Nasir, son of the said al-Mansur, on the death of his father, and he learned what had befallen Ifriqiya, he set out for it with his army, taking with him his said vizier Abu Muhammad. He entered Tunis and sent his said vizier to al-Mahdiyya, who wrested it and other places from Ibn Ghaniya in the year 602 AH, in long reports, and the land submitted to him. Then al-Nasir returned to the seat of his caliphate and appointed as his deputy