Hafsid
The Hafsids, or Hafsid dynasty, were a Muslim Berber dynasty that ruled Ifriqiya in the central Maghreb from about 1229 to 1574. They emerged among the Zenata Berbers and were founded by Abu Zakariya Yahya, who established control over Ifriqiya after the decline of the Almohad Caliphate, with Tunis as its capital. At their height, the Hafsids controlled much of the central Maghreb, including present-day Tunisia, eastern Algeria, and parts of western Libya, and they positioned themselves as the legitimate rulers of Ifriqiya and guardians of Islamic learning.
The Hafsid state was a centralized monarchy. Administration depended on a network of governors and a court
The Hafsids faced sustained pressure from neighboring powers, notably the Marinids to the west and the Zayyanids
The Hafsid era left a distinctive imprint on the architecture, urban development, and cultural life of Tunis