Zirids The Zirid Dynasty was a family of
Sanhaja Berbers that were originally from the Kabyle mountains. Initially on behalf of the Fatimids, they ruled the eastern and central Maghreb but encountered more resistance to the west from local
Zenata factions and the
Umayyads of Cordoba. Sometime between 1041 and 1051 they renounced the suzerainty of the Fatimid caliphs in Cairo. The Fatimid retaliation came in the form of the invasions of the
Banu Hilal and
Banu Sulaym into the Maghreb. South of Tunisia, they also possessed a number of oasis that were the termini of trans-Saharan trade routes.
The Hilalian invasions Almoravids realm at its greatest extent, c. 1120 In the 11th century, Berbers of the Sahara began a
jihad to reform Islam in North Africa to impose what they saw as a more rigorously orthodox
Maliki version of Islam. They were initially inspired by the teachings of
Ibn Yasin and nominally recognized the suzerainty of the Abbasid Caliphs. This movement seems to have assisted the southern penetration of Africa, one that was continued by later groups. In addition, the Almoravids are traditionally believed to have attacked and brought about the destruction of the
West African
Ghana Empire. However, this interpretation has been questioned. Conrad and Fisher (1982) argued that the notion of any Almoravid military conquest at its core is merely perpetuated folklore, derived from a misinterpretation or naive reliance on Arabic sources while Dierke Lange agrees but argues that this doesn't preclude Almoravid political agitation, claiming that Ghana's demise owed much to the latter.
Almohads The Almohads were another religious and political movement that arose among the Berbers of the western Maghreb during the 12th century. They promoted a new fundamentalist and unorthodox/reformist version of Islam which recognized
Ibn Tumart as a messianic figure, the
Mahdi.
The Banu Ghaniya invasions 1184-1187 phase In November 1184, the governor of
Mallorca and
Almoravid pretender Ali Ibn Ishaq invaded Almohad-Tunisia. The Tunisia campaign would be the last major accomplishment of his life, scoring many military victories against
Yaqub al-Mansur, among them,
Constantine,
Algiers, and Beija were seized. Ishaq's eventual death in 1187 led to the Almohads reoccupying Tunisia the following year. The situation engendered to the Caliph by Banu invasion was twofold:Yaqub al- Mansur was involved militarily in Al-Andalus consistently throughout his reign, seeking to avenge his father
Abu Yaqub Yusuf, murdered by
Afonso I of Portugal. This gifted Caliph Yaqub Mansur a
two front war which consumed his entire rule. After the empire restored in Tunisia, deeming the threat neutralized, Yaqub Mansur launched two campaigns in Portugal in 1190 and 1191. .
1203-1237 phase In 1203, Abdallah Ibn Ishaq toppled the governor of
Mallorca, Tashfin, who was an installed Almohad puppet. Fueled by the quelling of Almohad control in Mallorca, the Banu once again invaded Tunisia. Abdallah Ishaq's army harassed the caliph with raids and skirmishes, and key cities like Algiers and Constantine again fell. Under Yahya Ibn Ishaq, Banu forces reached as far as
Cyrenaica. They weren't driven out, tediously to the Caliphs, till 1226. Ishaq reoccupied Tunisia and much of the Maghreb for a third time in 1238 with little to no struggle. The financial and resource-strain placed on the Almohad Empire from the Banu conflict, accompanied by Iberian endeavors, to be a contributing factor to the Empire's decline.The Almohade Empire dissolved in 1269.
Marinids Hafsids The Hafsids were a Masmuda Berber dynasty ruling Ifriqiya (modern Tunisia) from 1229 to 1574. Their territories stretched from east of modern Algeria to west of modern Libya during their zenith. The dynasty was named after Muhammad bin Abu Hafs, a Berber from the Masmuda tribe of Morocco. He was appointed governor of Ifriqiya (present day Tunisia) by Muhammad an-Nasir, Caliph of the Almohad empire between 1198 and 1213. The Banu Hafs were a powerful group amongst the Almohads; their ancestor was Omar Abu Hafs al-Hentati, a member of the council of ten and a close companion of Ibn Tumart. His original name was "Fesga Oumzal", which later changed to "Abu Hafs Omar ibn Yahya al-Hentati" (also known as "Omar Inti") since it was a tradition of Ibn Tumart to rename his close companions once they had adhered to his religious teachings. The Hafsids as governors on behalf of the Almohads faced constant threats from Banu Ghaniya who were descendants of Almoravid princes which the Almohads had defeated and replaced as a ruling dynasty. Hafsids were Ifriqiya governors of Almohads until 1229, when they declared independence. After the split of the Hafsids from the Almohads under Abu Zakariya (1229–1249), Abu Zakariya organised the administration in Ifriqiya (the Roman province of Africa in modern Maghreb; today's Tunisia, eastern Algeria and western Libya) and built Tunis up as the economic and cultural centre of the empire. At the same time, many Muslims from
Al-Andalus fleeing the Spanish Reconquista of Castile, Aragon, and Portugal were absorbed. He also conquered
Tlemcen in 1242 and took Abdalwadids as his vassal. His successor Muhammad I al-Mustansir (1249–1277) took the title of Caliph. In the 14th century the empire underwent a temporary decline. Although the Hafsids succeeded for a time in subjugating the
Kingdom of Tlemcen of the
Abdalwadids, between 1347 and 1357 they were twice conquered by the
Merinids of Morocco. The Abdalwadids however could not defeat the Bedouin; ultimately, the Hafsids were able to regain their empire. During the same period plague epidemics caused a considerable fall in population, further weakening the empire. Under the Hafsids, commerce with Christian Europe grew significantly, however piracy against Christian shipping grew as well, particularly during the rule of Abd al-Aziz II (1394–1434). The profits were used for a great building programme and to support art and culture. However, piracy also provoked retaliation from Aragon and Venice, which several times attacked Tunisian coastal cities. Under Utman (1435–1488) the Hafsids reached their zenith, as the caravan trade through the Sahara and with Egypt was developed, as well as sea trade with Venice and Aragon. The Bedouins and the cities of the empire became largely independent, leaving the Hafsids in control of only Tunis and Constantine. In the 16th century the Hafsids became increasingly caught up in the power struggle between Spain and the Ottoman Empire-supported Corsairs. Ottomans conquered Tunis in 1534 and held one year. Due to Ottoman threat, Hafsids were vassal of Spain after 1535. Ottomans again conquered Tunis in 1569 and held it for 4 years. Don Juan of Austria recaptured it in 1573. The latter conquered Tunis in 1574 and the Hafsids accepted becoming a Spanish vassal state to offset the Ottoman threat. Muhammad IV, the last Caliph of the Hafsids was brought to Constantinople and was subsequently executed due to his collaboration with Spain and the desire of the Ottoman Sultan to take the title of Caliph as he now controlled Mecca and Medina. The Hafsid lineage survived the Ottoman massacre by a branch of the family being taken to the Canary Island of Tenerife by the Spanish.
Zayyanids Wattasids ==Ottoman rule==