Hafsids
The Hafsids were a Berber dynasty that ruled Ifriqiya, roughly corresponding to present-day Tunisia and parts of eastern Algeria and western Libya, from 1229 to 1574. They traced their name to the Banu Hafs, a Zenata Berber clan, and rose to power after breaking away from the Almohads when Abu Zakariya Yahya declared independence and established Tunis as the political center.
They established a hereditary sultanate with administrative and military structures centered on Tunis, while provincial governors
Culture and architecture flourished under Hafsid patronage. Mosques, madrasas, and fortifications were built, and urban life
From the 13th to the 16th centuries the Hafsid state faced pressures from rival powers, including the
Legacy: The Hafsids played a key role in shaping Maghrebi governance, trade networks, and Islamic scholarship