Hafsid Dynasty of Tunis
The Hafsid dynasty (1230-1574) succeeded Almohad rule in Ifriqiya, with the Hafsids claiming to represent the true spiritual heritage of its founder, the Mahdi Ibn Tumart (c.1077-1130). For a brief moment a Hafsid sovereign would be recognized as the Caliph of Islam. Tunisia under the Hafsids would eventually regain for a time cultural primacy in the Maghrib.
Read more about this topic: History Of Medieval Tunisia