The Maghreb after the Almohads
Chapter Opening
Chapters 37 and 38 examined the Mamluk lands of Egypt and Syria. This chapter shifts the center of Part VII westward and gives the Maghreb its own late-medieval history. Its central question is how the collapse of Almohad unity produced new regional states, and how dynastic rule, Amazigh and Arab tribal politics, cities, trans-Saharan and Mediterranean commerce, and relations with Iberian and Italian powers reshaped western North Africa between the thirteenth and late fifteenth centuries.
The chapter argues that the end of Almohad unity did not mean simple fragmentation or decline. The Marinids in Morocco, the Zayyanids (ʿAbd al-Wadids) at Tlemcen, and the Hafsids in Ifriqiya formed a durable multipolar system. They competed and at times occupied one another's capitals, yet they also patronized scholarship, taxed commerce, concluded treaties, and remained tied to al-Andalus, the Sahara, and the Mediterranean. Their authority was layered and negotiated rather than equivalent to modern territorial sovereignty.
Several cautions govern the chapter. Modern names such as Morocco, Algeria, and Tunisia orient readers but do not describe medieval political geography. These dynasties are not simply “Arab states”: Amazigh peoples remained central political actors, and Arabization was uneven and incomplete. “Tribal” is not a synonym for primitive or stateless. And the fifteenth century is not a countdown to Ottoman conquest, a subject reserved for Part VIII.
Historians rely on dynastic chronicles, biographical and legal writing, Ibn Khaldun's histories, treaties and notarial records from Italian and Catalan archives, inscriptions, monuments, and archaeology. Most were produced by literate urban elites, so pastoral and rural experience must often be inferred. The chapter stops at the threshold of 1500; Chapter 40 turns to Arabia and the Indian Ocean, and Chapter 42 surveys the Arab world around 1500.
Learning Objectives
By the end of this chapter, students should be able to:
- Explain how Almohad weakening produced the Marinid, Zayyanid, and Hafsid states.
- Distinguish medieval Maghrebi political geography from modern national borders.
- Compare the political structures of the three dynasties.
- Analyze tribal politics as a mechanism of government rather than a sign of state failure.
- Assess why the older “Hilalian destruction” interpretation is regarded as inadequate.
- Trace Mediterranean commerce, diplomacy, and conflict, including the 1270 Tunis expedition.
- Explain why trans-Saharan exchange was an independent economic axis.
- Interpret Ibn Khaldun's career and ideas as evidence from within the Maghrebi world rather than as universal law.
- Evaluate the causes and limited immediate effects of the Portuguese seizure of Ceuta in 1415.
- Contextualize the Maghreb of c. 1500 within Part VII without treating it as a prelude to Ottoman conquest.
Guiding Historical Questions
Questions for Historical Inquiry
- Why did Almohad unity give way to several competing states rather than a single successor?
- In what sense did dynastic authority operate without fixed borders?
- How did rulers combine subsidies, offices, marriage, military service, and force in dealing with tribal confederations?
- Why might equating tribal politics with “state failure” import modern assumptions?
- How did Mediterranean trade and diplomacy continue alongside religious and political rivalry?
- How did Saharan connections affect Maghrebi states and cities?
- What can Ibn Khaldun's career reveal about the Maghrebi world, and what are the limits of his theory?
- Why did Ceuta matter in 1415, and why did it not produce Portuguese domination of Maghrebi trade?
Historical Context
Chapter 32 traced the Almohads, their rule over the Maghreb and al-Andalus, and their weakening after the defeat at Las Navas de Tolosa (1212). This chapter assumes that account. The successors emerged from within the Almohad world: the Hafsids from a family of Almohad governors in Ifriqiya, the Zayyanids from Zenata Amazigh leaders in the central Maghreb, and the Marinids from a Zenata confederation of the steppe margins of eastern Morocco.
Chapter 3's environmental framework still applies: coastal and plain agriculture, mountain communities, steppe pastoralism, and oasis chains leading into the Sahara. The Arab migrations of earlier centuries, including that of the Banu Hilal, had by this period made Arabic-speaking tribal groups part of Maghrebi society. Chapter 38 showed how commerce structured Mamluk society; similar links, to Italian and Catalan merchants in the north and West African gold and salt in the south, shaped the Maghreb.
This chapter does not retell the Almohad story (Chapter 32), the Crusades in the Levant (Chapter 34), or the Ottoman incorporation of North Africa (Part VIII), and it leaves the Arab-wide survey of c. 1500 to Chapter 42.
Chronology Preview
Several dates are approximate or reflect later dynastic tradition and are marked accordingly.
| Date or Period | Event or Development | Why It Matters |
|---|---|---|
| 1229 | Abu Zakariyya asserts Hafsid independence in Ifriqiya (traditional dating) | Begins a dynasty ruling from Tunis |
| 1236 | Yaghmurasan founds ʿAbd al-Wadid rule at Tlemcen | Creates the central-Maghreb state |
| c. 1248–1250 | Marinids take Fez (dating varies by source) | Establishes the future Marinid capital |
| 1269 | Marinids take Marrakesh | Ends Almohad rule in Morocco |
| 1270 | Louis IX's expedition against Tunis; the king dies of illness | Shows Tunis's place in Mediterranean politics |
| 1299–1307 | Marinid siege of Tlemcen | Zayyanid survival shows limits of hegemony |
| 1337 | Abu al-Hasan takes Tlemcen | Marinid peak in the central Maghreb |
| 1340 | Battle of Río Salado | Marinid–Nasrid forces defeated by Castile and Portugal |
| 1347–1348 | Marinids take Tunis, then lose Ifriqiya after Kairouan | Maghreb-wide unification fails |
| 1377 | Ibn Khaldun completes the first draft of the Muqaddima (traditional dating) | Major analysis of dynasty, tribe, and city |
| 1415 | Portugal seizes Ceuta | First Iberian territorial foothold on this coast |
| 1472 | Wattasids assume the Moroccan sultanate | Marinid line ends in practice |
| 1492 | Granada falls | Alters migration and Mediterranean politics |
Major People, Groups, and Places
Reference — People, Groups & Places
- Marinids (Banu Marin)
- Zenata-based dynasty ruling Morocco from Fez.
- Zayyanids / ʿAbd al-Wadids
- Zenata dynasty at Tlemcen.
- Hafsids
- Dynasty of Almohad provincial origin ruling Ifriqiya from Tunis.
- Wattasids
- Marinid-related family of viziers who later took the sultanate.
- Nasrids of Granada
- Last Muslim dynasty in Iberia, closely tied to the Marinids.
- Ibn Khaldun
- Historian and official whose career spanned Tunis, Fez, Granada, Bijaya, and Cairo.
- Arab and Amazigh tribal confederations
- Political, military, and pastoral groups central to government.
- Italian, Catalan, and Majorcan merchants
- Traders operating in Maghrebi ports under treaty.
- Fez, Tlemcen, Tunis, Sijilmasa, Ceuta
- Principal capitals, gateway towns, and strategic ports.
Core Vocabulary Preview
The following terms appear throughout this chapter and are defined in the Key Terms review.
From Almohad Empire to a Regional Order
Collapse of Almohad Unity
The Almohad movement had unified the Maghreb and much of al-Andalus under a caliph claiming doctrinal authority. Its decline was gradual. The defeat at Las Navas de Tolosa in 1212 weakened Almohad prestige in Iberia, and in the following decades governors, tribal allies, and rival claimants increasingly acted on their own. The empire did not collapse in a single event, and historians date its end differently depending on whether they stress the loss of Iberia, the loss of Ifriqiya, or the fall of Marrakesh in 1269.
Three separations mattered most. In Ifriqiya the Hafsid governor Abu Zakariyya began acting independently around 1229, a date given by the chronicles and still treated as traditional. In the central Maghreb the Zayyanid leader Yaghmurasan established himself at Tlemcen in 1236 and, according to later accounts, was involved in the defeat and death of the Almohad caliph al-Saʿid in 1248. In Morocco, the Marinids advanced from the eastern steppe, took Fez in the late 1240s, and entered Marrakesh in 1269. These states competed for the same inheritance of titles, taxes, cities, and manpower, and none could eliminate the others.
What Medieval Writers Meant by the Maghreb
Medieval Arabic writers did not use modern country names. They spoke of al-Maghrib al-Aqsa, the “farthest west,” roughly the Atlantic and Mediterranean lands of Morocco; al-Maghrib al-Awsat, the central Maghreb around Tlemcen and the Algerian plains and highlands; and Ifriqiya, centered on Tunis and Kairouan. Beyond them lay the Sahara, and across the Strait of Gibraltar lay al-Andalus. Political reach followed cities, ports, roads, and oases, not lines.
Modern Morocco, Algeria, and Tunisia are therefore useful only as orientation. Tlemcen's rulers at times held lands later divided between two modern states, Hafsid influence reached into what is now eastern Algeria and sometimes Tripolitania, and Marinid power could extend from the Atlantic to Tunis. Students should read each place name as a medieval political and economic location first, and a modern one second.
Amazigh Political Power after the Almohads
All three founding houses emerged from societies in which Amazigh-speaking groups were politically central. The Marinids and Zayyanids were Zenata, long associated with steppe and pastoral zones, while the Almohad elite that preceded them had been drawn from Masmuda highland communities. Hafsid rule rested on an Almohad-era Masmuda lineage and drew on a range of local and tribal partners.
These states used Arabic as the language of government, law, and learning, and Islam as the language of legitimacy, but this does not make them simply “Arab dynasties.” Amazigh languages remained widely spoken in mountains, steppes, and oases, and political identity depended on lineage, alliance, and region as much as language. The Arabization of the countryside was a long and uneven process, and Amazigh leaders, soldiers, and scholars remained prominent throughout the period.
The Marinid Rise and the Making of Fez
Marinid Origins and Expansion in Morocco
The Banu Marin were a Zenata confederation of pastoralists and farmers from the steppe and oasis margins of eastern Morocco and the upper Moulouya region. Beginning in the early thirteenth century they moved north and west under pressure from the Almohads and from other tribal groups, fighting, raiding, and bargaining with the Almohad state rather than simply invading it. Their emergence illustrates the interdependence of pastoral and settled life described in Chapter 3.
Under successive leaders, including Abu Yahya and later Abu Yusuf Yaqub, the Marinids gained control of northern Morocco, took Fez in the late 1240s (sources differ on the exact year), and in 1269 captured Marrakesh, ending the Almohad caliphate's presence in Morocco. Dynastic chronicles such as the Rawd al-Qirtas, conventionally attributed to Ibn Abi Zarʿ, narrate these events, but they were written to serve the dynasty and must be read critically.
Fez al-Jadid and Marinid State Building
In 1276 Abu Yusuf Yaqub founded Fez al-Jadid (“New Fez”), a walled royal city beside the older city of Fez. It housed the palace, administration, garrison, and royal quarters, and it separated rulers from, while still tying them to, the old city's merchants and scholars. Its creation tells us that Marinid government needed a secure and visible center, not simply a roaming military camp.
The Marinid state relied on viziers and secretaries, a royal army drawn from tribal contingents and paid troops, taxation of agriculture and commerce, and the recruitment of Andalusi and other officials. It did not govern every mountain or steppe directly. Authority was strongest around cities, plains, and routes, and elsewhere it depended on negotiation with local leaders.
Madrasas, Maliki Scholarship, and Royal Patronage
The Marinids built madrasas as instruments of legitimacy and administration. Notable examples include the Saffarin (1271), the ʿAttarin (1323), and the Bou Inania (mid-fourteenth century, under Abu Inan). These foundations trained jurists and officials in Maliki law and tied the learned class to the dynasty. They also gave Fez a distinctive architectural and educational character that endured long after Marinid rule.
The dynasty also cultivated religious prestige by honoring the Idrisid shurafa, descendants of the Prophet associated with Fez's founding, and by presenting itself as a defender of Islam against Iberian Christian expansion. Patronage was political as well as pious: scholars, shrines, and endowments connected rulers to urban communities. The Qarawiyyin mosque-university, much older than the dynasty, remained a major center of learning.
Marinids, Granada, and the Strait of Gibraltar
The Marinids and the Nasrids of Granada
Granada's position was precarious from the start. Muhammad I, founder of the Nasrid dynasty, accepted vassalage to Castile in the 1240s, a compromise that allowed a small mountainous state to survive while Seville and Córdoba fell. From then on Granada's rulers played Castile, Aragon, and the Maghreb against one another, paying tribute when they had to and seeking outside help when they could.
For the Marinids, Iberia offered something that was hard to obtain at home: a cause that united a divided realm. Sultans who presented themselves as defenders of Muslim Iberia could command the loyalty of jurists and volunteers, and they gained prestige over their Zayyanid and Hafsid rivals. Abu Yusuf Yaqub crossed the Strait in 1275 and defeated a Castilian force near Écija. In the following years the Marinids held ports on the Iberian side, including Tarifa and Algeciras, and a corps of volunteer fighters under its own commander operated in the peninsula.
The Nasrids welcomed the help but feared the helper. A Marinid foothold on the Iberian coast threatened Granada's independence, and at moments Nasrid rulers cooperated with Castile against the Marinids. Castile's capture of Tarifa in 1292 took place against this background of Muslim rivalry. The relationship was therefore neither a united front nor a simple rivalry but a shifting bargain whose terms depended on who threatened whom.
Castile, Río Salado (1340), and the Politics of the Strait
The Strait changed hands repeatedly. Castile took Gibraltar in 1309, and in 1333 a combined Marinid and Nasrid force recovered it. Ceuta also passed among Marinid, Nasrid, and local ruling groups in the early fourteenth century. Control of the narrow crossing mattered because armies, supplies, and refugees all depended on shipping, and fleets of Castile, Aragon, Genoa, and the Maghreb competed for it. Italian and Catalan captains and shipowners served different sides at different times.
The climax came in 1340. In the spring a Marinid fleet defeated a Castilian squadron in the Strait, which opened the way for Abu al-Hasan's army to cross. On 30 October 1340 that army and the forces of the Nasrid ruler Yusuf I were defeated at the Río Salado, near Tarifa, by King Alfonso XI of Castile and King Afonso IV of Portugal. The Castilian royal chronicle of Alfonso XI gives a detailed account of the battle from the victors' side, while Marinid court writers such as Ibn Marzuq present the campaign from the Marinid side, so the two traditions should be read together. Castile then besieged and took Algeciras in 1344, and Alfonso XI died of plague in 1350 while besieging Gibraltar.
After 1340 the Marinids never again mounted a major army in Iberia, but they remained involved. In 1359 the Nasrid ruler Muhammad V, overthrown at Granada, took refuge at the Marinid court in Fez with his minister Ibn al-Khatib, and he regained his throne in 1362. Ibn Khaldun, who served at both courts, knew this world at first hand. Exile, patronage, marriage, and military support continued to cross the water.
The Strait therefore connected more than it separated. Scholars, soldiers, and officials moved between Fez and Granada, Andalusi craftsmen settled in Maghrebi cities, and Maghrebi sultans measured their legitimacy partly by what they did across the water. Historians who treat the Maghreb and Iberia as separate stages miss the ways in which a defeat at Río Salado reshaped politics in Fez.
Marinid Hegemony and Its Limits
Abu al-Hasan and the Attempt at Maghreb-Wide Hegemony
Abu al-Hasan (r. 1331–1348) came closest to uniting the Maghreb. He took Tlemcen in 1337, ending Zayyanid rule for a time, and in 1347 occupied Tunis after Hafsid weakness and requests from some local factions. Contemporary sources, including works associated with his court, present him as a ruler of a restored western Islamic order.
His success proved temporary. His Iberian defeat in 1340 had already damaged his reputation, and in April 1348 his forces were defeated near Kairouan by Arab tribal groups, after which Marinid control in Ifriqiya collapsed. The attempt shows that conquering capitals did not mean controlling the countryside, which depended on tribal agreements, supply lines, and local acceptance.
Succession Struggles, Viziers, and Regional Power
Abu al-Hasan's son Abu Inan seized power in Fez in 1348 and, in the early 1350s, briefly retook Tlemcen and Bijaya. After his death in 1358, the Marinid state was shaped by competing princes, viziers who controlled access to the sultan, and regional governors who built their own followings. Succession was often contested, and many sultans reigned under the influence of powerful ministers.
The Marinid state continued to hold Fez and much of northern Morocco, to maintain its madrasas and administration, and to participate in Mediterranean and Saharan commerce. Political instability at the center coexisted with continuing urban and scholarly life.
The workings of the court after 1358 show why instability and continuity could coexist. A succession of sultans, some of them children, were enthroned and removed by viziers, rival princes, and military commanders, and the real business of government passed to those who controlled the treasury and the army. Yet taxation, courts, madrasas, and provincial administration continued to function, while southern Morocco remained politically significant, including Marrakesh and the Tafilalt oasis region.
Wattasid Ascendancy
The Wattasids, a Zenata family related to the Marinids, served as viziers and governors and gained increasing power in the fifteenth century, acting as regents from the 1420s. After a revolt in Fez in 1465, in which a sharifian leader was proclaimed, the last Marinid line lost real authority, and the Wattasids became sultans around 1472.
Wattasid rule inherited Marinid institutions, including the court at Fez, the scholarly establishment, and ties to tribal and urban elites. It also faced new Portuguese pressure on the coast. The change of dynasty thus involved continuity in political structure even as the ruling house changed.
The Wattasids did not seize an alien state. They were Zenata like the Marinids, had served the dynasty for generations, and ruled at first as regents, so that the change of ruling house came gradually. The brief proclamation of a sharifian leader in 1465 reflects the rising prestige of descendants of the Prophet in Moroccan politics, a prestige that would grow as Portuguese pressure on the coast increased.
Zayyanid Tlemcen
Origins of the ʿAbd al-Wadid State
Marinid efforts to dominate the central Maghreb make more sense when viewed from Tlemcen itself. The Zayyanid state was not merely an obstacle to Moroccan expansion but a political and commercial center with its own durable sources of power, and its history begins more than two centuries before the Wattasid takeover with which the previous section ended.
The ʿAbd al-Wadids, usually called Zayyanids after their ancestor Zayyan, were a Zenata Amazigh house whose leader Yaghmurasan ibn Zayyan (r. 1236–1283) built an independent state at Tlemcen as Almohad authority faded. Their rule rested on tribal alliances in the central Maghreb, control of the Tlemcen plain and its trade, and recognition from urban notables.
The dynasty is known from Marinid and Hafsid chronicles, which are often hostile, and from Zayyanid-centered works such as Yahya ibn Khaldun's history of the dynasty, written in the late fourteenth century. Reading these together shows a state that was smaller than its neighbors but resilient, and whose rulers shaped their own court tradition.
Tlemcen as Commercial and Scholarly Center
Tlemcen stood where routes from Morocco, Ifriqiya, the Mediterranean ports of Honaine and Oran, and Saharan oases met. Merchants from the Mediterranean and the south exchanged goods in its markets, and the Zayyanids drew revenue from customs, tolls, and taxes on the farmland and pastures of the region. Italian and Aragonese merchants appear in treaties and commercial records connected to the central Maghreb.
The city was also a scholarly and religious center. Its mosques and madrasas, including foundations under rulers such as Abu Tashfin I (r. 1318–1337), trained jurists in the Maliki tradition, and the shrine of the Sufi Abu Madyan nearby attracted pilgrims and gave religious prestige to the region. The later ruler Abu Hammu Musa II (r. 1359–1389) is remembered as a patron of letters and the author of a mirror for princes.
The Marinid Siege of Tlemcen, 1299–1307
Between 1299 and 1307 the Marinid sultan Abu Yaqub Yusuf besieged Tlemcen. His forces built a fortified camp-city, al-Mansura, beside it, which became a military and commercial settlement in its own right. The siege strained the Zayyanids severely, but Tlemcen was never taken, and the siege ended in 1307 when the Marinid sultan was assassinated and his army withdrew.
The episode illustrates why central-Maghreb independence persisted. A long siege was costly, tribal contingents were unreliable over long campaigns, and dynastic succession could end a campaign abruptly. Later Marinid conquests of Tlemcen, in 1337 and again in the 1350s, were also reversed.
Hafsid Ifriqiya and Tunis
Hafsid Emergence from Almohad Provincial Rule
The Hafsids descended from Abu Hafs, a leading companion of the Almohad founder Ibn Tumart, and governed Ifriqiya as Almohad provincial rulers. Abu Zakariyya Yahya (r. c. 1229–1249) ended Almohad supervision and built an independent state, at first presenting it as a faithful continuation of Almohad doctrine before developing a more distinct identity.
Hafsid authority combined an Almohad-style inheritance, including councils of Almohad notables, with newer practices of Maliki jurists and Andalusi and local officials. Arabic chronicles and later works such as Ibn Khaldun's account are the main sources, supplemented by Italian and Catalan documents about trade.
Tunis, Provincial Government, and Caliphal Claims
Tunis became the principal Hafsid capital. Its Zaytuna mosque, madrasas, and markets drew scholars and merchants, and it received Andalusi migrants fleeing Iberian conquests, who brought administrative and craft skills. The port connected the city with Sicily, Pisa, Genoa, Venice, Aragon, and other Mediterranean partners.
Hafsid government relied on princes governing provincial centers such as Bijaya and Constantine, officials around the ruler, and negotiated arrangements with Arab and Amazigh tribal groups in the interior and the south. Provincial governors could act with great independence and sometimes rebelled, so the balance between capital and provinces was a continuing political problem.
In 1259, shortly after the Mongol destruction of Baghdad (Chapter 36), the Hafsid ruler al-Mustansir (r. 1249–1277) was recognized as caliph by rulers in the Hijaz, according to later accounts. He had adopted the title around 1253. The claim gave the dynasty prestige in the western Islamic world and connected it with the broader Islamic political order.
It did not produce universal recognition. The Mamluks sheltered an Abbasid line in Cairo, the Marinids made their own claims, and the title's practical value was limited. Its importance lies in showing that Hafsid rulers saw themselves as more than provincial governors.
Louis IX and the Tunis Expedition of 1270
Hafsid diplomacy involved Sicily, Aragon, Genoa, Pisa, Venice, and other Christian powers, with treaties covering trade, customs, merchant quarters, and the treatment of captives. Rulers also negotiated tribute or alliances with Christian kings, and Hafsid support for rebels sometimes created rivalries.
In 1270, King Louis IX of France landed near Carthage with a crusading army, and the king died of illness in August. His brother Charles of Anjou, king of Sicily, arrived afterward and concluded an agreement with the Hafsids that involved payments and commercial terms. Historians debate how far the expedition was driven by crusading ideals and how far by Angevin interests in Sicily and the central Mediterranean. It did not end Hafsid rule, and trade continued.
Three Dynasties, No Fixed Borders
Layered Sovereignty and Rival Capitals
Seen together, the histories of Fez, Tlemcen, and Tunis reveal a political order that cannot be understood through modern territorial sovereignty. Each dynasty advanced its own claim to legitimacy. The Marinids stressed jihad in Iberia, patronage of Maliki scholars, and honor toward the Idrisid shurafa. The Hafsids stressed their Almohad inheritance and, at times, the caliphal title. The Zayyanids relied on their lineage, the religious prestige of Tlemcen's saints and scholars, and their role as guardians of the central Maghreb.
These claims overlapped, and rulers acted on them. Abu al-Hasan took Tlemcen in 1337 and Tunis in 1347, and Abu Inan briefly held Tlemcen again in the early 1350s, yet in each case the occupation proved temporary. Tlemcen was restored to Zayyanid rule when Marinid power faded, and Ifriqiya slipped away after the defeat at Kairouan in 1348. In the fifteenth century the Hafsid ruler Abu Faris intervened in Tlemcen, and Zayyanid rulers accepted overlordship at times without losing their state.
Sovereignty was therefore layered. A city might acknowledge a ruler's name in the Friday sermon, pay irregular taxes, host a garrison, and still be governed day to day by local notables, jurists, and tribal allies. A ruler's real power varied with the season, the state of the harvest, the loyalty of nearby tribes, and the strength of his army. Occupation of a capital did not mean control of the territory around it.
Comparing Marinid, Zayyanid, and Hafsid Structures
The three dynasties can be compared by how they actually governed. The Marinids built a royal city at Fez al-Jadid in 1276, drew on tribal contingents and a paid retinue, and tied themselves to the learned class through madrasas such as the Bou Inania. Their weak point was the succession: after 1358 viziers and princes repeatedly controlled the sultan, and the Wattasids eventually took the throne.
The Zayyanids governed from a commercial city with a relatively small base, and their survival depended on diplomacy and flexible tribal alliances. The siege of 1299–1307 and the later occupations show a state that bent without breaking. Their rulers financed themselves through customs and tolls on the routes that met at Tlemcen, which also explains why neighbors repeatedly wished to control it.
The Hafsids governed from a long-established capital with princes in provincial centers such as Bijaya and Constantine, and with revenue from Mediterranean trade and tribal taxation. The Marinid defeat near Kairouan in 1348, following a revolt among Arab tribal groups, demonstrated the difficulty of imposing lasting authority over Ifriqiya's interior. This episode also illustrates the Hafsids' dependence on shifting tribal alliances.
The system lasted because none of these states could overpower the others and because tribal groups and merchants could shift their support. Ibn Khaldun, who served in several of these courts, observed that each state rested on its own tribal base. Some such pattern was needed for any one of them to survive, and none had the resources to absorb the rest.
Tribal Politics as Government
Amazigh Confederations and Arab Tribal Networks
Tribal confederations were a basic form of political organization in the Maghreb. Amazigh groups such as the Zenata, Sanhaja, Masmuda, Ghumara, and Hawwara, and Arab-speaking groups such as the Banu Sulaym, Riyah, Dawawida, and Maʿqil, formed alliances of lineages with leaders, customary law, military capacity, and economic interests. They could be pastoral, agricultural, or mixed, and their membership shifted over time.
Dynasties were themselves rooted in such networks. The Marinids and Zayyanids emerged from Zenata confederations, and the Hafsids relied on Arab and Amazigh groups for military support and tax collection. Rulers therefore governed with tribal power, not against it, and different tribes held different relationships to the state, from close partners to autonomous neighbors.
The Banu Hilal, Historiography, and Incomplete Arabization
Arab tribal groups, notably the Banu Hilal and Banu Sulaym, had moved into Ifriqiya and the central Maghreb from the eleventh century onward. Ibn Khaldun, and later French colonial writers, portrayed this movement as devastating. Since the mid-twentieth century scholars such as Jean Poncet and Michael Brett have challenged that view, stressing that agrarian and urban change had several causes, including political fragmentation, earlier economic shifts, and local conditions, and that the effects of migration varied by region.
By the period of this chapter, Arabic-speaking tribes were embedded in Maghrebi politics and economies, serving rulers as soldiers, tax intermediaries, and herders. Arabization was uneven. Arabic spread through tribal and urban channels, but Amazigh languages remained strong in mountains, steppes, and oases, and claims of genealogy could be political rather than strictly descriptive. Language, ancestry, and identity did not always coincide.
Subsidies, Offices, Marriage, Service, and Force
Rulers used a toolkit of methods to secure tribal cooperation. These included subsidies and grants of tax revenue in return for military service (the iqtaʿ-type arrangement), appointments to office, marriage alliances, hostages, collective tax arrangements, and the use of one group against another. Force was also used, through punitive expeditions and the siege of tribal strongholds, but force alone was costly and unreliable.
These arrangements show tribal politics as a form of government. Negotiation, bargaining, and rebellion were parts of a recurring cycle in which groups tested the state's limits and rulers tested theirs. Ibn Khaldun, who served several rulers as envoy and administrator and spent time among tribal leaders, drew on this experience, though his interpretation was shaped by his own position.
Pastoralists, Farmers, Cities, and Political Space
Pastoralists, Farmers, Mountain and Oasis Societies
Most Maghrebi people lived outside the cities, and the way they made a living shaped how they could be governed. Plains farmers grew wheat and barley, olives, and vines; mountain communities in the Rif, Atlas, Kabylie, and Aurès combined terraced fields with herds; and oasis communities in the Tafilalt, Tuat, the Zab, and the Jerid cultivated date palms with irrigation, using the techniques described in Chapter 3. Pastoralists moved flocks of sheep and goats, and in the south camels, between winter and summer pastures.
Each pattern created different opportunities and difficulties for a ruler. Farmers were fixed in place and could be taxed at harvest, but the tax collector had to arrive at the right season. Pastoralists could be taxed on their animals or through collective tribute, but they could also move out of reach, so rulers depended on bargaining with their leaders. In Hafsid Ifriqiya, rulers used armed expeditions to collect revenue and exercise authority in the provinces, a practice associated with the later Tunisian mahalla, in which taxation and military force were closely connected.
Access to pasture and water also made alliances. A tribe whose summer grazing lay in the highlands and whose winter pastures lay on the plain needed agreement with the people of both zones, and a ruler who controlled a key well or market could bind such a group to himself. Oases mattered politically because they supplied dates and grain, collected tolls from caravans, and offered a base to anyone who held them. Biskra and the Zab oases, for example, became places where rival princes, tribal leaders, and officials sought support or refuge.
The result was a patchwork. Rural society was not a separate world beyond government. Farmers, herders, mountain communities, and oasis dwellers each dealt with the state in different ways, and the same household might herd one season and farm the next.
Cities and Hinterlands
Cities rested on their hinterlands. Fez drew grain and livestock from the plains of the Saïs and the Gharb and water from the river that runs through the old city, and its craftsmen turned the region's hides into leather and its wool into cloth. Tunis relied on grain from the Majarda valley and olive oil from the coastal Sahel, and its port connected both to Mediterranean markets. Bijaya, on the coast of the central Maghreb, drew on the Kabyle highlands for goods such as wax, and the French word bougie (candle) is generally traced to the city's name, a reminder of how closely a place could be identified with a product. Constantine, on its rock above the plateau, controlled routes between the coast and the interior.
The countryside in turn depended on the city. Markets offered cloth, metalwork, tools, and salt, and a place to sell wool, hides, animals, and dates. Mosques, madrasas, and courts gave rural families access to law, education, and credit. Walls and garrisons offered protection in time of conflict, and rulers invested in markets, bridges, and endowments partly to secure the loyalty of urban populations.
Control of a town did not mean control of the roads that fed it. A ruler might hold a city but find that nearby tribes had cut its supply, that caravans were avoiding it, or that a rival had bargained for the grain of its plain. The Marinid defeat at Kairouan in 1348 illustrates the problem: even after taking the Hafsid capital, Abu al-Hasan could not hold the countryside that sustained it. Much political history of the period concerns this relationship between cities and their surroundings.
Mediterranean Commerce and Diplomacy
Commodities and Merchants
The Maghreb exported a range of agricultural and manufactured goods. Grain was an important commodity, and when harvests were good rulers might license exports to Italy or the Catalan lands, while in poor years they could restrict them. Olive oil, wool, hides and leather, dried fruit, and wax left the ports in quantity, and Bijaya's wax gave the candle its French name. In return came cloth from Italy and northern Europe, metals such as iron, copper, and tin, and manufactured goods. Gold from the Sahara passed through Maghrebi cities toward the Mediterranean, and enslaved people were bought and sold in both directions, including Muslims and Christians taken as captives, and Africans brought across the Sahara.
The merchants came from many places. Genoese, Pisans, and Venetians sent ships from Italy; Catalans and Majorcans from Barcelona and the Balearic Islands; and traders from Sicily, Marseille, and elsewhere appeared as political conditions allowed. Muslim and Jewish merchants from the Maghreb also traded in Italian and Catalan ports, so that commerce was a two-way system. Brokers and interpreters, known in Italian sources as sensali from the Arabic simsar, helped bridge languages and legal systems, and local officials supervised weights, measures, and the payment of duties.
Consuls, Treaties, Funduqs, and Commerce amid Conflict
Treaties give the best view of how this commerce worked. Italian and Catalan archives preserve agreements with Maghrebi rulers from the thirteenth century onward, for instance between the Hafsids and Italian cities from around the 1230s and between the Hafsids and Aragon. They set customs duties, which could differ by treaty and by nationality, provided for the protection of merchants and goods, and often addressed what happened when a merchant died or a ship was wrecked. They were not permanent: they were renewed, renegotiated, and sometimes broken, and each side used them to pursue its own interests.
A worked case illustrates the system. Catalan merchants in Tunis, by the later thirteenth century, lived and traded in a funduq assigned to them under agreement with the Hafsid ruler. They paid customs at the port, stored goods in warehouses, and had a consul who judged disputes among them and represented them before Hafsid officials. They relied on local brokers to find buyers, on credit and partnership contracts to finance voyages, and on the ruler's good will for protection. When relations between the Hafsids and the crown of Aragon worsened, their goods and persons could be at risk, but the trade usually resumed.
Commerce and conflict ran side by side. Privateering and the seizure of ships by all sides disrupted trade, and captives were taken and held for ransom by Christian and Muslim authorities alike, with religious orders such as the Mercedarians and Trinitarians on the Christian side and local arrangements on the Muslim side organizing exchanges. Rulers could use embargoes, tribute, or the confiscation of goods as political weapons.
The Mediterranean was therefore not a permanent frontier between Christian and Muslim states. Aragonese, Castilian, Portuguese, Genoese, Majorcan, Venetian, and Maghrebi actors fought, traded, allied, and negotiated in different combinations, and the same merchant might be a partner in one decade and an enemy in the next. For the Hafsids, Zayyanids, and Marinids, customs revenue from this trade was an important source of income, which gave them reason to maintain it.
Sahara and Trans-Saharan Networks
Caravan Routes and Gateway Towns
The Sahara was crossed by several caravan roads, and the Maghreb's gateway towns stood where those roads met the settled north. The best known was the western route from Sijilmasa, an oasis city in the Tafilalt that the Marinid sultan Abu Yusuf Yaqub took in 1274. From there caravans went south to the salt-mining settlement of Taghaza and on toward Walata and the Niger bend. Central routes passed through the oases of Tuat and Gourara, which tied Tlemcen and the Zayyanid lands to the Sahel, and through Wargla and Ghadames, which connected Ifriqiya and Tripolitania with the same southern markets.
The importance of particular towns changed with politics and with the movement of caravans. Sijilmasa's walled urban center declined amid political disorder and had disintegrated by the late fourteenth century, conventionally dated to 1393. Trade continued through the Tafilalt oasis region and increasingly through other routes, while the Tuat oases and Sahelian markets such as Timbuktu grew in importance. Our best eyewitness is the traveler Ibn Battuta, who left Sijilmasa for Mali in early 1352 and described Taghaza, where salt was cut in slabs and even used for building. His account, written down after his return, is vivid but must be read critically, since he wrote from memory and with the help of a court scribe.
For a Maghrebi ruler, a gateway town was a source of revenue and prestige. Customs and tolls on caravans passed into the treasury, and the dinars struck from southern gold carried the ruler's name. But a gateway town was also hard to hold. Its prosperity depended on the cooperation of the Saharan peoples who guided and guarded the caravans, and a ruler who held the town without their goodwill held little.
Goods and an Independent Economic Axis
Gold was the best-known commodity, and it was the main reason Maghrebi and Mediterranean states cared about the Sahara. Mined in West African regions to the south, it reached the north by caravan and was minted into coins in Maghrebi cities or exported across the Mediterranean, where Italian cities began striking gold coinage in the thirteenth century. The pilgrimage of the Malian ruler Mansa Musa in 1324 made the wealth of the region famous in Egypt and far beyond. Salt moved in the opposite direction, from desert mines to the savanna, where it was scarce. Copper, horses, cloth, and manufactured goods also went south, and books and religious scholars traveled with the trade.
Enslaved people formed another part of the traffic. Men, women, and children from the south were bought and sold in Maghrebi cities, where they served in households, workshops, and armies. The trade caused great human suffering, and historians still work to estimate its scale from scattered evidence.
Caravans were organized by merchants who formed partnerships, hired guides, and employed agents in the towns at each end. The Saharan peoples who controlled water points and knew the routes, among them Sanhaja groups and later others, set the terms for safe passage, and payment for protection was a normal cost of doing business. Merchants of different regions and religions took part, and trading families kept agents in several cities along a route.
This was an economic axis in its own right. The terms of trade were set as much by Saharan and Sahelian merchants and by the rulers of Mali and neighboring states as by Maghrebi sultans, who could not dictate prices or routes. From the later fifteenth century Portuguese ships reached the West African coast and began to bypass the desert, and historians debate how far this reduced the caravan trade in the short run. For the Marinids, Zayyanids, and Hafsids, the Sahara was a source of wealth over which they competed but which none controlled.
Scholars, Saints, Communities, and Mobility
Maliki Scholarship and the Mobility of Scholars
The roads that carried gold and salt also carried pilgrims, scholars, exiles, and holy men. Journeys to Mecca, the search for teachers, flight from political enemies, and the spread of Sufi orders followed many of the same routes as commerce, and religious authority traveled with merchants. The Maghreb's intellectual and spiritual life cannot be separated from these movements.
Maliki law was the dominant legal school across the Maghreb. Jurists trained in mosques and madrasas such as the Qarawiyyin and Bou Inania in Fez, the Tlemcen colleges, and the Zaytuna in Tunis. They served as judges, notaries, teachers, and advisers, and their legal opinions (fatwas) are among the best sources for social and economic life, though they record disputes more than ordinary routine.
Scholars moved widely. Careers could take a jurist or secretary among Fez, Tlemcen, Tunis, Granada, Cairo, and the Hijaz, through pilgrimage, patronage, and political exile. This mobility linked Maghrebi learning to the Mamluk and Andalusi worlds and helped carry texts and ideas across political frontiers.
Ibn Khaldun and ʿAsabiyya
Ibn Khaldun (1332–1406) was born in Tunis into a family of Andalusi origin. He served the Hafsids, then the Marinid court at Fez, where he was for a time imprisoned, the Nasrids at Granada, and a ruler at Bijaya, and he acted as envoy to tribal leaders. Around 1375 he withdrew to a fortress in the central Maghreb under tribal protection and wrote the Muqaddima in 1377, later moving to Cairo, where he served as a Maliki judge. His career crossed nearly every political world in this chapter.
He argued that dynasties arise from group solidarity (ʿasabiyya), strongest among groups on the margins, and weaken as rulers adopt urban luxury. This is a powerful interpretation, but it is a theory produced by an official deeply involved in the politics he analyzed, with a view shaped by urban and scholarly attitudes toward pastoral groups. It fits some Maghrebi dynasties well and others poorly, and it is not a universal law.
Sufism, Saints, and Zawiyas
Sufi masters and their lodges (zawiyas) were part of mainstream Islamic life, not a separate sphere, and many of them were trained jurists as well. Abu Madyan, an Andalusi-born teacher who lived and taught in Bijaya and died near Tlemcen around 1198, became the most revered saint of the central Maghreb, and his shrine drew pilgrims for centuries. Abu al-Hasan al-Shadhili, born in northern Morocco, taught in Tunis before moving to Egypt and giving his name to an order that spread widely. In the fifteenth century figures such as al-Jazuli in southern Morocco gathered large followings.
Zawiyas performed practical functions. They were schools, hospices for travelers, stores of grain, and places of sanctuary, and in regions where the state's reach was weak they were among the few institutions that could be counted on. Holy men and saintly lineages mediated disputes between tribes, protected travelers and property, and offered a neutral ground where rival groups could meet. Their authority rested on reputation for piety and descent, not on armies, and so it existed outside the dynasty.
Rulers dealt with this authority carefully. They endowed shrines, honored saints' descendants, and married into holy lineages, while recognizing that a popular saint could also become a focus for opposition. Relations between jurists and Sufis were mixed, with cooperation in many cases and disagreement over particular practices in others. As Portuguese pressure grew in the later fifteenth century, charismatic holy men began to take on military and political roles, a development whose consequences lie in the following period.
Jewish and Christian Communities and Andalusi Migration
Jewish communities were part of the fabric of Maghrebi cities. In Fez, Tlemcen, and Tunis, and in oasis towns on the Saharan routes such as Sijilmasa and Tuat, Jewish merchants, brokers, physicians, and artisans took part in local and long-distance trade, and families with relatives in several cities could act as intermediaries. Communities ran their own courts and schools under rabbinical authority, as their legal status allowed.
That status was one of protection and inequality. As dhimmis, Jews paid special taxes and lived under restrictions, and they depended on rulers for security. In Fez the separate Jewish quarter, the mellah, is traditionally dated to 1438, although scholars see the movement of Jewish residents into Fez al-Jadid as more gradual. It stood close to the palace. It offered protection and also segregation. Violence did occur: the revolt of 1465 in Fez was accompanied, according to later accounts, by attacks on the Jewish quarter, though the extent and circumstances of the violence are disputed. After anti-Jewish riots in Iberia in 1391, refugee scholars settled in Algiers and other Maghrebi cities, among them the rabbis Isaac ben Sheshet Perfet and Simon ben Zemah Duran, who became leading legal authorities there.
Christians were present in several roles. Merchants lived in funduqs in the ports, soldiers from Castile, Aragon, and other lands served as a Christian militia for Maghrebi rulers, and captives and converts formed part of urban society. Their presence depended on treaties, ransom, and the policy of the day.
Andalusi migration was a continuing stream. After the fall of Córdoba in 1236 and Seville in 1248, scholars, officials, and craftsmen left for Tunis, Fez, and other Maghrebi cities, where they were often welcomed by rulers glad of their skills. They brought knowledge of irrigation and horticulture, administration, music, and crafts, and some of the great families of Maghrebi cities traced their origins to Iberia. When Granada fell, this flow had a long history.
Ceuta, Iberian Expansion, and the Late Fifteenth Century
Ceuta (1415) and Iberian Coastal Pressure
In August 1415 a Portuguese fleet under King João I and his sons, among them Prince Henry, captured Ceuta, the Marinid-ruled port opposite Gibraltar. The expedition had several aims. It offered the Portuguese nobility a chance for honor in a crusading war, it gave the crown a strategic position on the Strait, and it raised hopes of profit from a city thought to be rich. The Marinid state, then governed under the regency of a young sultan, was unable to prevent it, and Marinid efforts to retake the city in 1418–1419 failed. The main narrative source is the later chronicle of Gomes Eanes de Zurara, a Portuguese court writer who celebrated the conquest, so its picture of motives and results must be read with care.
Ceuta did not bring Portugal control of Maghrebi commerce. Caravans largely bypassed the port, the garrison was costly to maintain, and later Portuguese ventures were uneven: an attack on Tangier in 1437 failed, and the Portuguese took Alcácer-Ceguer in 1458 and Asilah and Tangier in 1471. Spain's coastal presence began at the end of the century. These pressures altered the strategic setting of the Atlantic and Mediterranean coasts and created a new frontier in Morocco, but they did not make European conquest inevitable.
Wattasid, Late Hafsid, and Late Zayyanid Politics
In Morocco the Marinid line had lost real authority well before 1472. The Wattasid vizier Abu Zakariya Yahya governed as regent from the 1420s, and after a revolt in Fez in 1465 in which the last effective Marinid sultan was killed and a sharifian leader proclaimed, the Wattasids consolidated power. The sultan Muhammad al-Shaykh ruled at Fez from 1472, with authority strongest around the capital and the northern plains. The loss of Asilah and Tangier in 1471 gave Portuguese pressure on the coast new immediacy, and religious leaders and sharifian lineages gained influence as defenders of the faith.
In Ifriqiya the Hafsid ruler Uthman (r. 1435–1488) presided over a long period of relative stability. Tunis remained a flourishing commercial and scholarly center, Italian and Catalan merchants continued to trade there, and Andalusi migrants added to its population. Hafsid authority over provincial centers and tribal groups remained a matter of negotiation, as before, and succession disputes followed Uthman's death.
At Tlemcen the Zayyanids continued to rule despite Hafsid intervention and pressure from Morocco. Rulers such as Muhammad III al-Mutawakkil, who came to the throne in 1461 or 1462, maintained the court and its commercial life, and the dynasty adapted to new circumstances as Spanish power approached the coast near Oran. Evidence for the late Zayyanid period is thinner than for the Marinids and Hafsids, and our picture is correspondingly less certain. All three states were functioning, with courts, scholars, merchants, and tribal relationships, and none was simply waiting for conquest.
Granada (1492) and the Multipolar Maghreb around 1500
On 2 January 1492 the last Nasrid ruler, Muhammad XII, surrendered Granada to the Catholic monarchs, ending Muslim political rule in Iberia. The terms agreed in the preceding months promised religious and legal protections to the Muslim population, but within a few years those guarantees were eroded, and the larger migrations of the following decades changed the Maghreb further. In the same year, the monarchs ordered the expulsion of Spain's Jews, and many exiles went to North Africa, where they settled in Fez, Tlemcen, and other cities.
Andalusi migrants had been moving to the Maghreb for generations, and the fall of Granada added to a flow already shaping cities. Tetouan, near the Strait, had been resettled by Andalusi exiles in the late fifteenth century, and refugees reached Fez, Tlemcen, and Tunis. They brought skills in administration, crafts, and agriculture, and in some cities formed distinct communities with their own traditions.
Around 1500 the Maghreb remained a multipolar region. A Wattasid sultan ruled at Fez and faced Portuguese and Iberian pressure on the coast, Zayyanid rulers held Tlemcen and its commercial routes, and Hafsid Tunis remained a major port and capital. Tribal confederations, Saharan caravan networks, scholarly and Sufi communities, and Mediterranean merchants continued to shape each state. The region's later history is treated alongside that of the wider Arab world in Chapter 42 and in Part VIII.
ʿAsabiyya (often translated “group feeling” or “social solidarity”) is the term Ibn Khaldun used for the cohesion, rooted mainly in kinship or its equivalents, that enables a group to defend itself and, in his theory, to seize and hold power. Its root relates to binding or taking sides.
It matters here because Ibn Khaldun, who served in the courts of the Hafsids, Marinids, and Nasrids and negotiated with tribal leaders, offered it as an explanation of dynastic formation. It is a major interpretation produced by a participant, not a proven universal law. Modern equivalents such as “tribalism” or “clannishness” are misleading: the term describes a political resource, not a pathology.
A funduq (from the Greek pandocheion, via Arabic) was a combined inn, warehouse, and trading base for merchants, found in cities and ports across the Islamic world. In Maghrebi ports, funduqs were often assigned to merchants from particular Italian, Catalan, or other cities by treaty, with customs rules and sometimes a consul to judge disputes among their own nationals.
The term helps students see that foreign merchants traded within regulated, negotiated spaces. The related Italian word fondaco and Catalan alfòndec derive from it, which shows the exchange of institutions across the Mediterranean.
The Three-Power System
| Period | Development | Significance |
|---|---|---|
| 1229–1236 | Hafsid independence in Ifriqiya; Zayyanid state at Tlemcen | Two successor states form from Almohad provincial rule |
| c. 1248–1269 | Marinids take Fez, then Marrakesh | Morocco passes from the Almohads to the Marinids |
| 1270 | Louis IX's expedition against Tunis | Tunis appears in Mediterranean diplomacy |
| 1299–1307 | Marinid siege of Tlemcen | Zayyanid survival checks Marinid ambitions |
| 1337–1348 | Marinid takeover of Tlemcen and Tunis, then loss of Ifriqiya | Maghreb-wide unification fails |
| 1340 | Río Salado | Marinid hopes in Iberia end |
| 1415 | Portuguese seizure of Ceuta | New Iberian foothold on the coast |
| 1465–1472 | Marinid line replaced by Wattasid rule | Dynastic change within continuing institutions |
| 1492 | Fall of Granada | Migration and strategic pressure increase |
Timeline Analysis:
The sequence shows repeated attempts at consolidation that failed, producing a durable multipolar system rather than a collapse, and an external frontier that became more active in the fifteenth century.
- Why did attempts at unification repeatedly fail?
- How did events in Iberia affect Maghrebi politics?
- Which events show continuity of institutions across dynastic change?
The Maghreb as a System of Routes
Using a map of the western Mediterranean and North Africa, students should locate the following and consider routes, not modern borders:
- Fez, Fez al-Jadid, and Marrakesh
- Sijilmasa and the Saharan routes toward West Africa
- Tlemcen, Oran, and Honaine
- Bijaya (Béjaïa), Constantine, and Tunis
- Ceuta, Gibraltar, and Granada
- Majorca, Sicily, and Genoa
Map Analysis Questions:
- Which cities sit where Saharan and Mediterranean routes meet?
- Why was Tlemcen's position between Morocco and Ifriqiya both an advantage and a danger?
- How does the Strait of Gibraltar function as a connection?
- Why do modern borders hide the political relationships of this period?
Ibn Khaldun
Context: Ibn Khaldun wrote after a career in Tunis, Fez, Granada, Bijaya, and tribal service in the central Maghreb, and the Muqaddima reflects that experience. The passage below is a thematic paraphrase of related discussions in Book One, Chapter II, especially §§5–8 and 16–17 of Rosenthal's translation, not a verbatim quotation.
Analysis: The source shows how a participant in Maghrebi politics explained the rise and fall of dynasties, and it supports the point that tribal relationships were central to rule. However, it is a theoretical model, not a neutral description of every society, and it reflects an urban scholar's view of pastoralists. Because it combines several sections, it should not be read as one continuous argument. It cannot establish how any particular Marinid, Zayyanid, or Hafsid ruler actually obtained support.
Questions for students:
- What does this source say about cohesion and power?
- Who created it, and for what possible purpose?
- What can historians learn from it?
- What can historians not establish from this source alone?
Tribal Politics and State Power
The question: Did tribal politics weaken Maghrebi states, or were tribal relationships part of how those states functioned?
Evidence: Court chronicles stress rebellion and campaigns. Fiscal, military, and treaty evidence points to regular tribal participation. Ibn Khaldun's work is both evidence and an interpretation.
Why it matters: Equating tribal politics with state failure imports modern assumptions about sovereignty and bureaucracy. Both interpretations capture something real, and many historians combine them.
Student task: Identify what evidence would distinguish a breakdown of authority from a bargaining episode.
Living in the Post-Almohad Maghreb
Note: these are analytical reconstructions, not quotations from any named person.
The Maghreb, c. 1250 and c. 1450
What Changed
- One Almohad imperial structure gave way to three regional states
- Fez, Tlemcen, and Tunis became major capitals
- Portugal gained a foothold at Ceuta
- Wattasid influence replaced Marinid rule at Fez
What Stayed the Same
- Urban networks and Maliki scholarship
- Negotiated relations between rulers and tribal groups
- Trans-Saharan and Mediterranean commerce
- Andalusi, Jewish, and Christian presence in Maghrebi cities
Who experienced change most directly? Court elites, port cities, and those facing Iberian pressure. Who experienced continuity? Many rural and pastoral communities, artisans, and scholars.
Why the pattern matters: It shows political fragmentation without disconnection.
The Portuguese Seizure of Ceuta, 1415
Long-term causes
Iberian territorial expansion, crusading ideology, and interest in the Strait.Short-term causes
Royal and noble ambition, expected commercial gains, and the Marinid state's weakness.Event
Portuguese capture of Ceuta in August 1415.Immediate effects
A Portuguese garrison on the African coast and a failed Marinid effort to retake it.Long-term consequences
Later Portuguese coastal expansion, but not immediate control of Maghrebi trade.Historical complexity
The event reflects Iberian initiative and Maghrebi political conditions together and cannot be reduced to one cause.Caravan and Market in Tlemcen
A caravan arriving at Tlemcen might carry Saharan salt, gold, and cloth, while farmers from the plain brought grain, olives, and wool to the markets. Pack animals, camels, and mules moved goods between the city, its gates, and its warehouses, and officials supervised weights, measures, and customs.
Artisans worked in specialized quarters, including leatherworkers, weavers, and metalworkers, and scholars taught in mosques and madrasas. Merchants from Italy and Catalonia and Jewish traders had their own places of business, and pilgrims visited the nearby shrine of Abu Madyan. Households ran on shared labor: women worked in textile production and food preparation, and children learned trades by apprenticeship.
Most of this picture comes from legal, chronicle, and commercial sources produced by literate men, so the experiences of women, laborers, and rural migrants must be inferred with care.
Chapter Summary
The post-Almohad Maghreb did not collapse into simple fragmentation. After Almohad unity weakened in the thirteenth century, the Hafsids in Ifriqiya, the Zayyanids at Tlemcen, and the Marinids in Morocco built successor states that competed for the same inheritance.
The Marinids rose from steppe Zenata groups, took Fez and Marrakesh, and built a royal city, madrasas, and a scholarly establishment at Fez. Their intervention in Iberia ended in defeat at Río Salado in 1340, and Abu al-Hasan's attempt to unify the Maghreb collapsed in 1348.
The Zayyanids survived at Tlemcen through diplomacy, commerce, and tribal alliances, as the long siege of 1299–1307 showed. The Hafsids governed Ifriqiya from Tunis, advanced caliphal claims, and negotiated with Italian, Sicilian, and Aragonese powers, including during Louis IX's expedition of 1270.
None of these states held fixed borders. Authority was layered and negotiated, and rulers occupied one another's capitals without annexing them permanently. The system lasted because no ruler could dominate all three regions and because tribal groups, merchants, and scholars had choices.
Tribal politics was part of government. Amazigh and Arab confederations supplied soldiers, taxes, and local authority, and rulers used subsidies, offices, marriage, and force. The older view of the Banu Hilal as destroyers has been revised, and Arabization was long and incomplete.
Rural and urban worlds were interdependent. Pastoralists, farmers, mountain communities, and oasis dwellers supplied cities, which in turn offered markets, taxes, and protection.
Commerce crossed both the Mediterranean and the Sahara. Italian and Catalan merchants traded under treaties, funduqs, and consuls even while states fought, and trans-Saharan exchange was an independent axis connecting the Maghreb to West Africa.
Scholars, Sufi saints, Jewish and Christian communities, and Andalusi migrants shaped Maghrebi society, and Ibn Khaldun's career shows how connected this world was. His theory of ʿasabiyya is an influential interpretation, not a universal law.
The Portuguese seizure of Ceuta in 1415 and the fall of Granada in 1492 changed strategic conditions, but around 1500 the Maghreb remained a functioning multipolar system. Its later history belongs to Chapter 42 and Part VIII.
Key Terms
- Maghrib
- The Arabic “west”; the lands of northwest Africa.
- Ifriqiya
- Medieval region around Tunis and Kairouan, Hafsid heartland.
- Zenata
- Amazigh grouping from which the Marinids and Zayyanids emerged.
- Sanhaja
- Amazigh grouping including many Saharan and Kabyle communities.
- Masmuda
- Amazigh highland grouping central to the Almohad movement.
- ʿAsabiyya
- Group solidarity, central to Ibn Khaldun's theory of dynasties.
- Vizier
- Chief minister who could control access to a ruler.
- Wattasids
- Zenata family of viziers who became sultans in Morocco c. 1472.
- Madrasa
- College for legal and religious training, often royally endowed.
- Maliki school
- Sunni legal tradition dominant in the Maghreb.
- Zawiya
- Sufi lodge serving as school, hospice, and mediator.
- Marabout
- Holy man or saint, often with a shrine and following.
- Funduq
- Inn, warehouse, and trading base for merchants.
- Dhimmi
- Protected non-Muslim subject under Islamic law.
- Mellah
- Jewish quarter in Moroccan cities, traditionally dated to 1438 in Fez, though the settlement was probably more gradual.
- Tribal confederation
- Alliance of lineages with leaders, customary law, and military capacity.
- Iqtaʿ-type grant
- Assignment of revenue or land in return for service.
- Caliphal title
- Claim to succeed the Prophet's political leadership; Hafsid rulers advanced such claims.
- Trans-Saharan trade
- Caravan exchange linking the Maghreb with West Africa.
- Consul
- Merchant-community representative in a foreign port.
- Customs duty
- Tax on goods at ports and gates, a major source of revenue.
- Arabization
- Long, uneven spread of the Arabic language and Arab genealogical identity.
- Layered sovereignty
- Overlapping, negotiated authority rather than fixed territorial control.
- Shurafa
- Descendants of the Prophet, honored by Moroccan dynasties.
Major People, Groups, and Places
Identification & Significance
- Marinids
- Zenata dynasty ruling Morocco from Fez.
- Zayyanids (ʿAbd al-Wadids)
- Zenata dynasty at Tlemcen.
- Hafsids
- Dynasty of Almohad origin ruling Ifriqiya from Tunis.
- Wattasids
- Marinid-related viziers who took power in Morocco.
- Nasrids of Granada
- Last Muslim dynasty in Iberia, tied to the Marinids.
- Yaghmurasan
- Founder of Zayyanid rule at Tlemcen.
- Abu Zakariyya
- Founder of independent Hafsid rule.
- al-Mustansir
- Hafsid ruler who adopted a caliphal title.
- Abu Yusuf Yaqub
- Marinid sultan who took Marrakesh and founded Fez al-Jadid.
- Abu al-Hasan
- Marinid sultan who took Tlemcen and Tunis, then lost Ifriqiya.
- Abu Inan
- Marinid sultan and patron of the Bou Inania madrasa.
- Ibn Khaldun
- Historian and official whose career spanned the Maghreb and Cairo.
- Louis IX
- French king who died during the 1270 Tunis expedition.
- João I and Prince Henry
- Portuguese leaders of the 1415 capture of Ceuta.
- Fez
- Marinid capital and scholarly center.
- Tlemcen
- Zayyanid capital on routes between Morocco and Ifriqiya.
- Tunis
- Hafsid capital and Mediterranean port.
- Sijilmasa
- Saharan gateway town taken by the Marinids in 1274.
- Ceuta
- Strait-side port seized by Portugal in 1415.
- Granada
- Nasrid capital that fell in 1492.
Chronology Check
- Place in order: Río Salado; Hafsid independence; Ceuta; the siege of Tlemcen; the fall of Granada; Louis IX's expedition.
- Which events show limits on Marinid power?
- Which events changed the position of Iberian powers on the African coast?
- Group the developments into political, commercial, and migration-related change.
- Identify one turning point and explain its significance.
- What continued across the period despite dynastic change?
- How do the dates 1229, 1236, and c. 1248–1269 show that Almohad decline was gradual?
- Why are some dates in this chapter described as traditional or approximate?
Map Study Questions
- Using a map of routes, explain why Tlemcen was strategically important.
- Which cities connected Saharan and Mediterranean commerce?
- How does the Strait of Gibraltar connect rather than separate Iberia and North Africa?
- Why do modern borders misrepresent Marinid, Zayyanid, and Hafsid authority?
- Where would a ruler's authority have been strongest, and where weakest?
Primary Source Questions
- What does Ibn Khaldun argue about group cohesion and power?
- Who created the source, and what experience shaped it?
- What can historians learn from it about Maghrebi politics?
- What can historians not establish from this source alone?
- How does the fact that this is a paraphrase affect how it should be used?
Review Questions
- How did Almohad weakness lead to three successor states?
- Why did Marinid attempts to unify the Maghreb fail?
- How did Fez function as a political and scholarly center?
- Why did Tlemcen survive the Marinid siege of 1299–1307?
- What was the basis of Hafsid power at Tunis?
- What does “layered sovereignty” mean?
- How did rulers govern through tribal groups?
- Why is the “Hilalian destruction” interpretation now contested?
- How did Mediterranean trade coexist with conflict?
- Why was trans-Saharan trade an independent axis?
- How did Sufi saints and zawiyas mediate local authority?
- What role did Jewish and Christian communities play in the Maghreb?
- What was the significance of Río Salado?
- What were the effects of the seizure of Ceuta in 1415?
Short Answer Questions
- Compare Marinid and Hafsid methods of governing.
- Explain how tribal politics could be both a challenge and a resource for dynasties.
- Explain why the Maghreb should not be described using modern country borders.
- Assess how far the Strait of Gibraltar connected Iberian and North African politics.
- Explain the strengths and limits of Ibn Khaldun as a source for the period.
Discussion Questions
- Is “fragmentation” a useful description of the post-Almohad Maghreb?
- How should historians treat chronicles written to serve a dynasty?
- Does the idea of tribe versus state help or mislead?
- What does commerce during conflict suggest about Mediterranean politics?
- How did mobility of people and ideas shape Maghrebi identity?
- Why might later writers have emphasized decline in the fifteenth century?
Writing Exercises
- Exercise 1 (Explanatory): Explain how the Marinids, Zayyanids, and Hafsids emerged from Almohad rule and why they coexisted.
- Exercise 2 (Comparative): Compare how two of the three dynasties managed relations with tribes and Mediterranean powers.
- Exercise 3 (Evidence-based argument): Using the Historical Debate and the Ibn Khaldun source, argue whether tribal politics weakened or structured Maghrebi states.
- Exercise 4 (Connections): Trace how events from 1415 to 1492 changed the strategic position of the Maghreb, and what remained continuous.
Research or Library Extension
MGU Library Research Project
Mapping a Maghrebi City and Its Hinterland, c. 1250–1500
This project asks you to study one city of the post-Almohad Maghreb (Fez, Tlemcen, Tunis, Bijaya, Constantine, or Sijilmasa) as a node linking countryside, caravans, ports, scholars, and rulers, using library resources to build a historical map and an evidence-based essay.
- Choose a city and define its region. Identify the city's hinterland, nearest ports and oases, and the tribal groups and rulers who influenced it in different periods, avoiding modern borders as the organizing frame.
- Build a historical map. Mark routes, markets, water and agricultural zones, religious and educational foundations, and the neighboring cities with which it interacted.
- Collect evidence. Use at least four kinds of source, such as chronicles, legal or biographical works, travel accounts, treaties or commercial records, inscriptions, monuments, and archaeological reports, and note who produced each and whose perspective is missing.
- Analyze the city's roles. Explain how it functioned politically, commercially, and intellectually, and how rulers, merchants, scholars, saints, and tribal groups interacted there.
- Write your findings. In a 4–6 page essay (or equivalent presentation), present your map and argument, distinguishing established evidence from later tradition and noting where scholarly understanding is incomplete.
Library resources to use: Histories of the medieval Maghreb, translated chronicles and geographies, studies of Mediterranean commerce, archaeological and urban-history studies of the chosen city, and the MGU History Library's reference materials (see also Appendix A, Glossary of Regional and Historical Terminology).
Chapter Reflection
This chapter shows that the end of an empire need not mean the end of a connected, creative political world. After Almohad unity, Fez, Tlemcen, and Tunis became centers of competing states that governed through cities, tribal alliances, scholarship, and commerce, and their histories deserve to be read on their own terms and not as a prelude to later conquest.
It also shows why careful vocabulary matters. Terms such as sovereignty, tribe, and Arab can mislead if projected from the modern world. Layered authority, tribal bargaining, and uneven Arabization were ordinary features of medieval Maghrebi government, and the Banu Hilal debate illustrates how interpretations can change as historians reconsider earlier assumptions.
The chapter connects regions. Merchants and scholars moved among the Maghreb, al-Andalus, Egypt, the Hijaz, the Sahara, and the Mediterranean, linking developments treated in Chapters 37 and 38 with those that follow. The Portuguese seizure of Ceuta and the fall of Granada began to alter the strategic setting, though the outcome was not determined.
Chapter 40 turns to Arabia, Yemen, Oman, and the Indian Ocean, Chapter 41 to plague and demographic change, and Chapter 42 to the Arab world as a whole around 1500. The patterns established here, multipolar competition, negotiated authority, and commercial and scholarly connection, are the background against which later developments in the Maghreb should be read.