تم له الأمر يوم وفاة والده وعمره اثنا عشر عاما وهو آخر ملوك هاته الدولة، وكانوا كلهم أهل نجدة وشجاعة وإحسان ومعروف. وكان فصيحا عاقلا حازما لا يتزحزح لعظائم الأمور ولا يتضعضع لنوائب الدهور شجاع القلب كريم النفس ينظم الشعر، وفي سنة 517 ه قصد صاحب صقلية المهدية في أسطول عظيم وجنود جرارة ولما وصل المهدية هاج البحر على هذا الأسطول فدمر أكثره وألحق الضرر بالباقي فقتل المسلمون الكثير من رجاله وغنموا غنائم كثيرة وانعقد عقب ذلك صلح واستولى الطاغية على جربة وصفاقس وقرقنة وطرابلس. وفي سنة 543 ه خرج بأسطول عظيم ودهم به المهدية على حين غفلة من أهلها فخرج الحسن منها بما خف وفجأ الناس من بلاء هذا الطاغية ما لم يكن له حساب، ولما دخل المهدية وجدها خالية فاستولى عليها من غير تعب وقتال واستولى على ذخائر الحسن، وأمن الناس وعمرها أحسن عمران ثم استولى على سوسة وصفاقس ودانت له البلاد، وأما الحسن فإنه بعد خبر طويل وصل للخليفة عبد المؤمن بن علي مستجيرا به فأكرمه وأحسن منزله، وأجاب مطالبه واستعد لذلك ثلاث سنين وتوجه لها بنفسه في صفر سنة 554 ه، وبين يديه الحسن المذكور بعسكره الجرار وجيشه العرمرم يقال إنه لما وصل باجة عرض العساكر فكانت الفرسان أزيد من مائة ألف والرجال لا تحصى وهي تمر بالطريق الضيقة في المزارع فلا يضرها شيء وهذه المحلة تمتد أميالا وكلهم يصلون الصلوات الخمس بإمام واحد وتكبيرة واحدة ولا يتخلف أحد منهم عن الصلاة لأنه كان يقتل من يتأخر منهم وكانت مقدمة هذا الجيش اثني عشر ألف مقاتل قد كلفوا بحفر الآبار واستخراج المياه وتمهيد الطريق وتهيئة ذلك للجيش ولولا هذا التدبير لم يقدر على هاته الأسفار البعيدة بهاته الجيوش العظيمة فنازل تونس وأخذها صلحا وكانت بيد أحمد بن خرسان واستخلف على تونس أبا محمد عبد السلام الكومي ورتب معه أشياخا من الموحدين ثم رحل للمهدية والأسطول يحاذيه في البحر فوصل إليها منتصف رجب وكان بالمهدية ملوك الفرنج وأبطال الفرسان فحاصرها بما انضاف إليه من أهل البلاد بما يخرج عن الإحصاء وفي مدة الحصار فتح طرابلس ونفوسة وقابس وثغور إفريقية وما والاها وأقام في حصارها ستة أشهر إلى أن فتحها بكرة عاشوراء سنة 555 ه ولذا يقال لها سنة الأخماس، ودانت له البلاد بالطاعة واستخلف عليها أبا عبد الله محمد الكومي وجعل معه الحسن وأمره أن يقتدي برأيه وأقطع الحسن جانبا منها وارتحل ولبثت إفريقية في أمن ودعة واطمئنان بقية أيامه وصدرا من أيام بنيه ومدحه الشعراء على هذا الفتح منهم أبو محمد عبد الله بن أبي العباس التيفاشي بقصيدة أولها:
Rule became his on the day of his father's death, at the age of twelve years. He was the last of the kings of this dynasty, and all of them were men of valour, courage, beneficence and kindness. He was eloquent, intelligent and resolute, not shaken by great events nor weakened by the calamities of the ages, stout of heart, noble of soul, and he composed poetry. In the year 517 AH the lord of Siqilliya made for al-Mahdiyya with a great fleet and vast troops. When he reached al-Mahdiyya the sea rose against this fleet, destroyed most of it and damaged the rest; the Muslims killed many of its men and took much booty. After that a peace was concluded, and the tyrant took Jarba, Safaqus, Qarqanna and Tarabulus. In the year 543 AH he went out with a great fleet and fell upon al-Mahdiyya while its people were unaware. Al-Hasan left it with what he could carry, and the people were surprised by an affliction from this tyrant that they had not reckoned with. When he entered al-Mahdiyya he found it empty and took it without effort or fighting, and took possession of al-Hasan's treasures; he gave the people security and restored it in the best way. Then he took Susa and Safaqus, and the land submitted to him. As for al-Hasan, after a long story he reached the caliph ʿAbd al-Muʾmin ibn ʿAli, seeking his protection; he honoured him and gave him a fine lodging, and granted his requests. He prepared for that for three years and set out for it in person in Safar of the year 554 AH, with the said al-Hasan before him, with his vast army and huge host. It is said that when he reached Baja he reviewed the troops, and the horsemen were more than a hundred thousand and the foot soldiers beyond counting; they passed along the narrow road through the fields without harming anything. This camp stretched for miles, and all of them prayed the five prayers behind a single imam with a single takbir; none of them stayed away from the prayer, because he would kill whoever of them lagged behind. The vanguard of this army was twelve thousand fighters charged with digging wells, drawing out water, levelling the road and preparing that for the army; were it not for this arrangement he could not have managed these distant journeys with these great armies. He besieged Tunis and took it by treaty; it was in the hands of Ahmad ibn Khurasan. He appointed as his deputy over Tunis Abu Muhammad ʿAbd al-Salam al-Kumi and placed with him shaykhs of the Almohads. Then he set out for al-Mahdiyya, with the fleet keeping level with him at sea, and reached it in the middle of Rajab. In al-Mahdiyya were kings of the Franks and champion horsemen. He besieged it, together with those of the people of the land who joined him, in numbers beyond counting. During the siege he conquered Tarabulus, Nafusa, Qabis and the frontier towns of Ifriqiya and what adjoins them. He remained besieging it for six months until he conquered it on the morning of ʿAshuraʾ of the year 555 AH; therefore it is called the Year of the Fifths. The land submitted to him in obedience. He appointed as his deputy over it Abu ʿAbd Allah Muhammad al-Kumi, placed al-Hasan with him and ordered him to follow his opinion, granted al-Hasan a part of it as a fief, and departed. Ifriqiya remained in security, ease and tranquillity for the rest of his days and the early part of the days of his sons. The poets praised him for this conquest, among them Abu Muhammad ʿAbd Allah ibn Abi l-ʿAbbas al-Tifashi, with an ode whose beginning is: