Hafsid dynasty
Several Berber dynasties emerged during the Middle Ages: - In North Africa, Sudan, in Andalusia, Italy, in Mali, Niger, Senegal and Egypt. Ibn Khaldoun made a table of Berber dynasties: Zirid, Banu Ifran, Maghrawa, Almoravid, Hammadid, Almohad Caliphate, Marinid, Zayyanid, Wattasid, Meknes, Hafsid dynasty, Fatimids.