Polity Europe 1229–1574 CE

Hafsid dynasty

Sunni Muslim dynasty of Amazigh (Berber) descent

The Hafsids, a Berber-founded Sunni dynasty, made Tunis a center of trade and learning before Spain and the Ottomans fought over it.

Period1229–1574 CECapitalTunisOfficial languageClassical Arabic, BerberReligion / traditionSunni Islam WikidataQ752662

Abu Zakariya Yahya governed Ifriqiya for the Almohads before rejecting their caliph's authority in 1229 and declaring independence. He made Tunis his capital, took Constantine and Béjaïa in 1230, and captured Algiers in 1235. He kept Almohad elites in senior posts to present the new order as a continuation, even as he adopted the caliphal title Amir al-Mu'minin in direct challenge to Marrakesh.

Al-Mustansir expanded trade with Europe and the Sudan, and Abu Zakariya's welcome to Andalusi migrants and refugees nourished intellectual life. Ibn Khaldun was born in Tunis; Hafsid patrons sponsored the Maghreb's first madrasas. Dynastic peace was brittle. When Abu Yahya Abu Bakr died in 1346, his intended heir was killed in Tunis by his brother Umar. The murdered heir's chamberlain summoned the Marinids, expecting to be made ruler; their invasion instead strengthened Bedouin tribes, and he fled to Egypt.

Abu al-Abbas Ahmad II restored unity and strengthened central power in 1370, opening the dynasty's apogee. Centuries of statecraft ended in a scramble for Tunis. Spain occupied the city and restored the Hafsids as tributaries; the Ottomans seized it in 1569, lost it to Don Juan of Austria in 1573, and took it back in 1574. The last ruler, Muhammad VI, was sent to Constantinople and executed for collaborating with Spain, while the Ottoman sultan sought the title of caliph.

Strange truth Though the Hafsids were of Berber descent, they claimed Arab ancestry from Omar, the second Rashidun caliph, to make their rule more legitimate.

Drafted by HungerG (entity-v1.0) from the cited sources.

Almohad Ifriqiya

The Hafsids were of Berber descent, although to further legitimize their rule, they claimed Arab ancestry from the second Rashidun caliph Omar. The ancestor of the dynasty (from whom their name is derived), was Abu Hafs Umar ibn Yahya al-Hintati, a Berber from the Hintata tribal confederation, which belonged to the greater Masmuda confederation in present-day Morocco. He was a member of the Council of Ten, one of the highest Almohad political bodies, and a close companion of Ibn Tumart, the Almohad movement's founder.

The son of Abu Hafs, Abu Muhammad Abd al-Wahid ibn Abi Hafs, was appointed by the Almohad caliph Muhammad al-Nasir as governor of Ifriqiya (generally present-day Tunisia, eastern Algeria, and western Libya) where he ruled from 1207 to 1221. He was established in Tunis, which the Almohads had chosen as the province's administrative capital. His appointment came in the wake of the defeat of Yahya Ibn Ghaniya, who had launched a serious attack against Almohad authority in the region. Abu Muhammad Abd al-Wahid was ultimately quite effective in keeping order. The caliph had granted him a significant degree of autonomy in governing, partly to help persuade him to accept this difficult position in the first place. This laid the groundwork for a future Hafsid state.

When Abu Muhammad Abd al-Wahid died in 1221, the Almohad chiefs in Ifriqiya initially elected his son, Abu Zayd Abd al-Rahman, as the next governor. However, the Almohad caliph in Marrakesh, Yusuf II al-Mustansir, had not consented to this and was able to overrule this and appoint his own relative to the position. As Almohad authority weakened over the following years, local opposition to the Almohad governor compelled the Almohad caliph Abdallah al-Adil to appoint another Hafsid family member to the post in 1226. He chose Abu Muhammad Abdallah, a grandson of Abu Hafs. Abu Muhammad Abdallah's brother, Abu Zakariya Yahya, arrived in Tunis before him and began to reestablish order. When al-Ma'mun, the brother of Abdallah al-Adil, rebelled against the latter's authority from al-Andalus, Abu Zakariya sided with him, whereas Abu Muhammad Abdallah remained loyal to the caliph in Marrakesh. Al-Ma'mun's eventual victory resulted in Abu Zakariya being placed in charge of Ifriqiya in 1228.

Rise to power

A year later, in 1229, al-Ma'mun officially renounced Almohad doctrine. Abu Zakariya used this as a pretext to repudiate his authority and to declare himself independent. By this point, Al-Ma'mun did not have the means to stop him or to reassert control over Ifriqiya. Initially, Abu Zakariya had his name mentioned in the khutba (the sermon during Friday prayer) with the title of amir, but in 1236 or 1237 he began to adopt the caliphal title of Amir al-Mu'minin, in direct challenge to the Almohad caliph in Marrakesh. He also initially organized the state around the Almohad elites, portraying his regime as a continuation of the Almohad system and placing Hafsid family members and Almohad shaykhs (tribal chiefs) in most important positions. He created the post of shaykh al-muwahhidin ('Chief of the Almohads'), often held by a Hafsid family member, who served as the ruler's deputy and to whom all the Almohad chiefs answered.

Abu Zakariya annexed Constantine (Qusantina) and Béjaïa (Bijaya) in 1230. In 1234, he chased Yahya Ibn Ghaniya out of the countryside south of Constantine in 1234, ending this lingering threat. In 1235 he captured Algiers and then established his authority as far as the Chelif River to the west. In the following years he subdued various rural tribes, such as the Hawwara, but allowed some of the Banu Tujin tribes in the central Maghreb to govern themselves as small vassal states that secured his western borders. He welcomed many refugees and immigrants from al-Andalus who were fleeing the advance of the Reconquista. He appointed some of them to important political positions and recruited Andalusi military regiments as a way of counteracting the power and influence of traditional Almohad elites.

For a time, the Nasrid ruler of Granada in al-Andalus, Ibn al-Ahmar, briefly acknowledged Abu Zakariya's suzerainty in an attempt to enlist his help against Christian forces. Ultimately, Hafsid intervention on the Iberian Peninsula was limited to sending a fleet to Muslim Valencia 's aid in 1238. Abu Zakariya showed more interest in trying to recreate some of the former authority of the Almohads over the Maghreb and he made attempts to extend his control further west. In 1242, he captured Tlemcen from the Zayyanids, but the Zayyanid leader Yaghmurasan evaded him. The two leaders eventually came to an agreement, with Yaghmurasan continuing to rule in Tlemcen but agreeing to formally recognize Abu Zakariya's authority. That same year, Sijilmasa and Ceuta (Sabta) also recognized his authority, though these would later fall under Marinid control. This policy of western expansion ended with Abu Zakariya's death (1249).

Consolidation and division

His successor, Muhammad I al-Mustansir (r. 1249–1277), focused on consolidating the Hafsid state in Ifriqiya. The state benefited from expanding trade with both Europe and the Sudan region (south of the Sahara). In the western Maghreb (present-day Morocco), the Marinids, who had not yet fully established their rule in the region, formally recognized his authority in 1258. With the fall of Baghdad, the home of the Abbasid caliphs, that same year, the Hafsids were briefly seen as the most important rulers of the Muslim world. The Sharif of Mecca, Abu Numayy, temporarily recognized him as caliph in 1259.

It was during his reign that the failed Eighth Crusade took place, led by Louis IX of France. After landing at Carthage, Louis died of dysentery in the middle of his army decimated by disease in 1270.

After al-Mustansir's death in 1277, the Hafsids were riven by internal conflict, aggravated by interference from Aragon. This resulted in a split in the dynasty: one branch ruled from Tunis in the east and another branch ruled from Béjaïa (Bijaya) and Constantine (Qusantina) in the west. This division continued to characterize Hafsid politics for much of its history, with the balance of power sometimes shifting from one side to another and with intermittent successes at unifying both branches under one rule. After the initial split, the first successful reunification took place under Abu Yahya Abu Bakr II (r. 1318–1346), the ruler of the western branch who managed to take control of Tunis.

Marinid invasions and internal crisis

Abu Yahya Abu Bakr's rule remained unstable and he resorted to making alliances with the Zayyanids and Marinids to the west. His agreement with the Marinid ruler, Abu al-Hasan (r. 1331–1348), included a marriage to his sister, who subsequently died during a failed Marinid expedition in Spain, followed by another marriage to his daughter. When Abu Yahya Abu Bakr died in 1346, his intended heir, Abu'l Abbas, was killed in Tunis by his brother, Umar, who seized power. Abu'l Abbas's chamberlain, Abu Muhammad Abdallah ibn Tafrajin, sent a letter to Abu al-Hasan urging him to intervene and invade Ifriqiya. Abu al-Hasan, having already conquered Tlemcen in 1337, seized the opportunity to further expand. He conquered Tunis in 1347 and the Hafsid governors in the region accepted his authority.

The invasion, however, disturbed the balance of power in favour of the Bedouin Arab tribes, whom the Marinids were unable to sway. Ibn Tafrajin, who had hoped to be placed in power by the Marinids, fled to Egypt. The situation in Ifriqiya devolved into further disorder and internal rivalries, and Abu al-Hasan was forced to return west in 1349, partly to deal with a coup d'état by his son, Abu Inan. Ibn Tafrajin returned to Ifriqiya and, with Bedouin support, installed another young son of Abu Yahya Abu Bakr, Abu Ishaq, as ruler. Abu Inan, having successfully taken the throne from his father, invaded Ifriqiya again and captured Tunis in August 1357, but he was soon forced by his own troops to abandon the region. He returned west, retaining control only of Constantine and the cities of the central Maghreb for a time.

During the mid-14th century, plague epidemics brought to Ifriqiya from Sicily caused a considerable fall in population, further weakening the Hafsid realm. To stop raids from southern tribes during plague epidemics, the Hafsids turned to the Banu Hilal to protect their rural population.

Apogee

After the Marinid threat ended, attempts to reunify the Hafsids failed until Abu al-Abbas Ahmad II (r. 1370–1394), the emir of Béjaïa and Constantine, conquered Tunis in 1370. A capable ruler and military leader, he reestablished Hafsid authority on stronger terms, centralizing power to a greater extent than ever before. Meanwhile, the Zayyanids and Marinids were occupied by internal matters. The Almohad-based institutions of the state, such as the office of shaykh al-muwahhidin, also lost any remaining importance after this time.

Abu Faris Abd al-Aziz II 's reign (r. 1394–1434) was considered the apogee of Hafsid power and prosperity by contemporary writers. He further consolidated his dynasty's power in Ifriqiya and extended his influence over the Zayyanids and Marinids (and the Wattasids who succeeded the latter).

The beginning of his reign was not easy since the cities of the south revolted against him. However, the new sultan quickly regained control: he reoccupied Tozeur (1404), Gafsa (1401), and Biskra (1402), subdued tribal power in the regions of Constantine and Béjaïa (1397–1402), and appointed governors of these regions to be elected officers. He also intervened against his western and eastern neighbors. He annexed Tripoli (1401) and Algiers (1410–1411). In 1424, he defeated the Zayyanid sultan, Abu Malik Abd al-Wahid, and placed another Zayyanid, Abu Abdallah Muhammad IV, [15] Around the same time (probably in 1426), Abu Faris Abd al-Aziz also helped to install Abd al-Haqq II on the Marinid throne in Fez – under the regency of Abu Zakariya Yahya al-Wattasi – and thus obtained from him a recognition of Hafsid suzerainty.

Text adapted and shortened from the English Wikipedia article “Hafsid dynasty”, CC-BY-SA-4.0. This adaptation is shared under the same licence.

IIPictures

Pictures

IIIRelations

Connections in the record

Capital
Tunis
Official language
Classical Arabic, Berber
Religion / tradition
Sunni Islam
Currency
dinar

Sources

  1. Wikipedia (en) — Hafsid dynasty (rev 1383605853). CC-BY-SA-4.0.
  2. Wikidata Historical Entities & Lineage Spine. CC0-1.0.