1230 CE · 627 AHapproximatedebatedbefore the Hijra
In 627 AH the amir Abu Zakariya, grandson of the shaykh Abu Hafs, seized Ifriqiya and threw off the caliph al-Ma'mun's allegiance after the latter had erased the Mahdi's name from coinage and khutba — founding the Hafsid state at Tunis under the Hintati grandsons of the Almohads' greatest shaykh.
Abu Zakariya al-Hafsi's break with the Almohads — 1230 CE · 627 AH
In 627 AH the amir Abu Zakariya, grandson of the shaykh Abu Hafs, seized Ifriqiya and threw off the caliph al-Ma'mun's allegiance after the latter had erased the Mahdi's name from coinage and khutba — founding the Hafsid state at Tunis under the Hintati grandsons of the Almohads' greatest shaykh.
Ibn al-Abbar's embassy to the sultan of Ifriqiya for beleaguered Valencia, 635/1238 — c. 1238 CE · c. 635 AH
When James I of Aragon besieged Valencia in Ramadan 635 (April–May 1238), Ibn al-Abbar was sent with a deputation to the Hafsid sovereign Abu Zakariyya' of Tunis to beg assistance; he recited before him his qasida rhyming in sin on 4 Muharram (17 August 1238 as printed), painting a moving picture of his besieged native city . The sultan hastened to aid its people, loading fleets with money, provisions and clothing .
Ibn al-Abbar leaves fallen Valencia and settles at Tunis as head of the chancellery, 636/1238 — c. October 1238 CE · c. Safar 636 AH
Ibn al-Abbar returned to Valencia but left it a few days after it was captured by James I on 17 Safar 636 (28 September 1238); he stopped at Bougie before going on to Tunis, where Abu Zakariyya' received him favourably and appointed him chief of his chancellery .
Death: Abu Zakariya al-Hafsi — August 1249 CE · 7 Jumada II 647 AH
Abu Zakariya Yahya ibn Abi Muhammad, grandson of the shaykh Abu Hafs al-Hintati, founder of the Hafsid state in Ifriqiya; a loyal Almohad amir until al-Ma'mun abjured the Mahdi's creed, whereupon he threw off his allegiance in 627 AH and seized Ifriqiya, founding the Hafsid house that ruled Tunis some three centuries.