MGU History Series · Library Textbook Edition
Part VI — Regional Powers and the Crusading Age
32

The Maghreb and the Western Islamic World

A History of the Arab World: From Ancient Crossroads to the Modern Arab World

Chapter Opening

In the closing decades of the eleventh century, a coalition of camel-riding warriors from the deep Sahara, organized around a fortified religious retreat and animated by a program of moral and legal reform, crossed the Atlas mountains, founded a new city on a dry plain south of the High Atlas, and within a generation ruled an empire stretching from the edge of the Sahara to the heart of Iberia. Marrakesh, the city they founded, had not existed a generation earlier. By the time their empire reached its height, it governed more territory on both sides of the Strait of Gibraltar than any single power based in Córdoba, Baghdad, or Cairo could claim in the same period. The rulers of this empire were not Arabs from the Hijaz or Syria. They were Sanhaja Amazigh tribesmen from the western Sahara, and the soldiers, scholars, and administrators who built their state were drawn overwhelmingly from Amazigh communities across the Maghreb.

This chapter tells the story of how the Maghreb — the vast stretch of North Africa running from the Egyptian frontier to the Atlantic coast of Morocco, and from the Mediterranean littoral to the Sahara's northern margins — developed its own powerful and distinctive political traditions during the three centuries following the Arab conquests examined in Chapter 19. It is easy, when writing a history organized around Baghdad, Damascus, or Cairo, to treat the Maghreb as a distant province: a region that received Islam and Arabic from the east and then largely disappears from the historical narrative until later chapters return to it. That treatment would badly misrepresent the historical record. During exactly the period when the Fatimid caliphate examined in Chapter 31 was building a rival center of authority in Cairo, and while the Abbasid caliphate in Baghdad was fragmenting into the regional successor states examined in Chapter 30, the far western Islamic world was generating its own independent dynasties, its own religious movements, its own trading networks stretching deep into the Sahara, and eventually its own transregional empires that governed both sides of the Mediterranean's western basin.

The central figures in this story are a genuinely mixed cast, and one of this chapter's tasks is to keep their differences visible rather than collapsing them into a single category. Some of the Maghreb's most important medieval ruling houses were themselves of Arab origin: the Idrisid dynasty that founded Fez descended from an Arab claimant to the Prophet's family who arrived from the Hijaz, and the Aghlabid governors who ruled Ifriqiya from the region of Kairouan traced their own family's origins to Arabia by way of Khurasan and Abbasid service. Neither house, however, could have built or sustained its state without the political, military, and social support of the Maghreb's Amazigh populations — the diverse communities native to North Africa for millennia before the Arab conquests, sometimes still called by the exonym "Berber" in older scholarship — who converted to Islam in the generations after the conquests examined in Chapter 19 and Chapter 20 and who, in the Idrisid case specifically, first installed and protected the dynasty's founder. Later in this chapter's story, the pattern shifts further still to Amazigh-founded imperial movements: the Sanhaja-based Almoravids, led from the top by Sanhaja chiefs and reformers, and the Masmuda-founded Almohads, whose movement arose under Masmuda leadership before its imperial dynasty itself passed to Kumiya Zanata leadership under ʿAbd al-Muʾmin — in neither case an Arab ruling family resting on Amazigh support. Holding these distinctions clearly in mind — an Arab ruling house dependent on Amazigh backers, an Arab governing family ruling a predominantly local North African society with large Amazigh populations and a mixed military and administrative establishment, and, later, Amazigh-founded imperial movements whose leadership itself could shift between Amazigh confederations — will matter throughout the chapter and is examined explicitly in Section 32.17.

This chapter also insists on a geography that the rest of the textbook has sometimes only gestured toward. The Maghreb was never a single, undifferentiated block. Ifriqiya — roughly corresponding to modern Tunisia and parts of eastern Algeria and western Libya — had its own distinct history as the seat of Roman Africa and Carthage before it, examined in Chapter 11, and remained the region's wealthiest agricultural heartland and its principal Mediterranean-facing political center for centuries after the conquests. The central Maghreb, corresponding roughly to the bulk of modern Algeria, and the far Maghreb, corresponding roughly to modern Morocco, developed their own separate political trajectories, often only loosely connected to Ifriqiya's rulers. And the entire region's northern coast faced not only the Mediterranean and, across the Strait of Gibraltar, al-Andalus, but also, to the south, the vast Sahara and the trading and cultural worlds that lay beyond it. Students should resist projecting the modern nation-states of Morocco, Algeria, Tunisia, and Libya backward onto this medieval landscape; those borders and national identities are the outcome of much later historical processes examined in Parts IX through XII, not categories medieval Maghrebis themselves would have recognized.

The chapter's evidentiary foundation combines several kinds of sources. Arabic chronicles, dynastic histories, and biographical dictionaries — many written centuries after the events they describe, and often composed to justify a ruling dynasty's legitimacy — provide the backbone of political narrative but require careful, critical reading. Geographical writers, including al-Bakri and later al-Idrisi, describe towns, trade routes, and regional conditions with a level of concrete detail that chronicles alone cannot supply, though their accounts, too, synthesize information of uneven reliability gathered from travelers and earlier written sources. Archaeology, numismatics (the study of coins), and architectural remains — mosques, city walls, palace complexes — supply independent evidence that can confirm, complicate, or contradict the textual record, particularly for questions of urban growth, trade volume, and artistic patronage. Inscriptions on Almoravid and Almohad coinage, for instance, preserve official religious and political claims in a form less mediated by later historiographical tradition than a chronicle composed generations afterward.

By the chapter's end, students should understand the medieval Maghreb not as a peripheral extension of Umayyad, Abbasid, or Fatimid power, but as a region that generated its own independent centers of political and religious authority — centers powerful enough, at their height, to intervene decisively in the affairs of al-Andalus and to project military and commercial power deep into the Sahara. That story sets up an important contrast with Chapter 33, which turns eastward to examine a very different transformation then underway in Iraq and Syria under Seljuk Turkish military power, and it enriches the increasingly multipolar picture of the medieval Islamic world that Part VI as a whole is building.

Learning Objectives

By the end of this chapter, students should be able to:

  1. Explain why the medieval Maghreb should be understood as a region that generated independent political and religious traditions rather than as a passive periphery of Baghdad, Damascus, or Cairo.
  2. Distinguish Ifriqiya, the central Maghreb, and the far Maghreb as historically distinct sub-regions, and avoid mapping the modern states of Tunisia, Algeria, Morocco, and Libya backward onto the medieval period.
  3. Describe the political trajectories of the Idrisid dynasty in the far Maghreb and the Aghlabid dynasty in Ifriqiya, and explain their relationship to distant Abbasid authority.
  4. Analyze the religious diversity of the medieval Maghreb, including Sunni, Ibadi Kharijite, and Shiʿi missionary currents, and explain how religious movements repeatedly became vehicles for political change.
  5. Trace the origins, religious program, and military expansion of the Almoravid movement from its roots among the Sanhaja Amazigh of the western Sahara to its rule over Morocco and much of al-Andalus.
  6. Trace the origins, religious doctrine, and imperial expansion of the Almohad movement from Ibn Tumart's reform teaching among the Masmuda Amazigh to the transregional empire built by ʿAbd al-Muʾmin and his successors.
  7. Explain the historical significance of Almoravid and Almohad intervention in al-Andalus, including the battle of al-Zallaqa/Sagrajas, without allowing the chapter to become a general history of Iberian politics.
  8. Describe the commercial, religious, and demographic connections linking the Maghreb to trans-Saharan Africa, including the trade in gold, salt, and enslaved people.
  9. Assess the historiographical debate over whether the Almoravid and Almohad movements are better understood as religious reform movements or as imperial state-building projects, and explain why the two categories overlap.
  10. Evaluate the significance of Amazigh political, military, and religious leadership for understanding the concept of "Arab World" that structures this textbook.
  11. Contextualize the Maghreb's medieval political development within the broader multipolar Islamic world examined across Part VI, including its relationship to the Fatimid caliphate of Chapter 31 and the eastern transformations of Chapter 33.
  12. Identify the kinds of evidence — chronicles, geographical writing, numismatics, and archaeology — historians use to reconstruct Maghrebi political and social history, and describe the limitations of each.

Guiding Historical Questions

Questions for Historical Inquiry

  1. Why did effective Abbasid political authority extend so weakly, and for such a limited period, into the far Maghreb?
  2. How did Amazigh communities, converted to Islam within a few generations of the conquests, become the founders and rulers of major Islamic dynasties rather than remaining simply the conquered subjects of Arab rulers?
  3. What made religious reform movements — Kharijite, Shiʿi, and later Almoravid and Almohad — such effective vehicles for political mobilization in the medieval Maghreb?
  4. In what ways did the Strait of Gibraltar function historically as a connector rather than a barrier between North Africa and Iberia?
  5. How did trans-Saharan trade in gold, salt, and enslaved people shape the political and economic development of Maghrebi states?
  6. What evidence allows historians to distinguish a genuine religious reform movement from a movement whose religious claims primarily served state-building and imperial ambition?
  7. Why should the Almoravid and Almohad empires not be understood as centralized, uniform territorial states in the modern sense?
  8. What does the political history examined in this chapter suggest about the relationship between Arabization, Islamization, and Amazigh identity?

Historical Context

Chapter 19 traced the Arab-Islamic conquest of North Africa as part of the broader wave of expansion that carried Muslim armies from Arabia into Syria, Iraq, Egypt, and beyond, and Chapter 20 examined the garrison cities, treaties, and provincial arrangements through which conquerors and conquered populations negotiated new relationships across the early empire. Chapter 24 distinguished the linguistic process of Arabization from the religious process of Islamization and showed how uneven and gradual both processes were, particularly outside the empire's Arab garrison centers. This chapter picks up the Maghreb's story where those chapters left it: a region formally incorporated into the Umayyad and then Abbasid caliphate, but one where Arab political control was thin, geographically limited, and, especially after the Abbasid Revolution examined in Chapter 24, increasingly difficult to project from Baghdad across thousands of kilometers of desert and mountain terrain.

Chapter 30 examined the broader fragmentation of Abbasid power as autonomous dynasties emerged across the caliphate's provinces, and Chapter 31 examined how the Fatimid dynasty built a rival Ismaʿili Shiʿi caliphate first in Ifriqiya and then, after 969, in Egypt, establishing Cairo as a genuine competitor to Baghdad. This chapter's task is to explain what happened in the vast Maghrebi territory that the Fatimids left behind when they shifted their center of gravity eastward to Egypt, and to trace the independent states — the Arab/Alid Idrisids, the Arab Aghlabids, the Zirid and Hammadid successors who governed Ifriqiya after the Fatimid departure, and above all the Amazigh-led Almoravids and Almohads — that gave the medieval Maghreb its own distinctive political history, only loosely tethered to events in Baghdad or Cairo.

Two related historical misconceptions are worth setting aside from the outset. The first treats the Maghreb after the conquests as a simple extension of Arab rule, in which Amazigh populations feature only as conquered subjects gradually assimilated into an Arab-Islamic world directed from the east. The second, sometimes found in reaction to the first, treats every significant medieval Maghrebi dynasty as equally "Amazigh" or flattens the real differences between an Arab ruling house governing with Amazigh support and a dynasty that was itself Amazigh in leadership. This chapter avoids both errors by keeping dynastic origin and social composition analytically distinct. The Idrisids were an Arab/Alid house whose authority depended from the very beginning on Awraba Amazigh backing; the Aghlabids were an Arab governing family, tracing its own origins to Arabia by way of Khurasan, ruling a predominantly local North African society with large Amazigh populations and drawing on a mixed military and administrative establishment that included Arab tribal levies, Amazigh recruits, and enslaved soldiers alike; and the Almoravid and Almohad movements, by contrast, were founded and led from the top by Amazigh chiefs and reformers themselves, drawn respectively from the Sanhaja confederation and, in the Almohad case, from the Masmuda founding community and the Zanata leadership that succeeded it. All of these dynasties, whatever the origin of their ruling families, operated using Arabic administrative language, Islamic legal and theological vocabulary, and models of caliphal and sultanic authority adapted from the wider Islamic world. Arabization and Islamization, as Chapter 24 established, were separate processes that unfolded at different speeds in different places, and the Maghreb's varied medieval dynasties — Arab, Alid, and Amazigh alike — illustrate that separation with particular clarity, a theme this chapter returns to directly in Section 32.17.

Chronology Preview

Many dates for the earliest Maghrebi dynasties rest on later chronicle tradition and should be treated as approximate. Where a date is genuinely disputed among specialists, this is noted.

Date or PeriodEvent or DevelopmentWhy It Matters
c. 740s CEMajor Kharijite-led revolts break out among Amazigh communities across the MaghrebDemonstrates early Amazigh political and religious agency and the weakness of distant Umayyad and Abbasid authority in the region
c. 767–909 CERustamid Ibadi imamate centered at Tahert in the central MaghrebIllustrates the durability of Kharijite-derived religious and political community outside Sunni or Shiʿi caliphal control, discussed in this chapter
789 CE (traditional date)Idris I arrives in the far Maghreb and founds the Idrisid line near Walila/VolubilisEstablishes an early independent, Alid-legitimated polity beyond effective Abbasid reach
800 CEIbrahim ibn al-Aghlab granted hereditary governorship of Ifriqiya by the Abbasid caliph Harun al-RashidEstablishes the nominally Abbasid but effectively autonomous Aghlabid dynasty, based at al-ʿAbbasiyya near Kairouan
c. 809 CEIdris II establishes the core Idrisid settlement at FezBegins Fez's long history as a major religious, intellectual, and political center of the far Maghreb
818 CEAndalusi refugees from a suppressed revolt in Córdoba settle at FezEstablishes one of the city's two founding immigrant communities, discussed in this chapter
820s CESettlers from Kairouan arrive at Fez amid unrest in IfriqiyaEstablishes the city's second founding immigrant community, discussed in this chapter
827 CE onwardAghlabid conquest of Sicily beginsExtends Ifriqiyan naval and political power into the central Mediterranean, discussed in this chapter
876–877 CEAghlabid court relocates from al-ʿAbbasiyya to the new palace city of RaqqadaIllustrates the continuing Aghlabid practice of ruling from a separate princely capital near, but distinct from, Kairouan
909 CEFatimid movement overthrows the Aghlabids in IfriqiyaEnds Aghlabid rule and begins the Fatimid dynasty examined fully in Chapter 31
969 CEFatimids conquer Egypt and shift their capital to Cairo, leaving the Zirid dynasty as their deputies in IfriqiyaLeaves much of the Maghreb to be governed by local deputies and successor dynasties, discussed in this chapter
c. 1040 CEʿAbd Allah ibn Yasin begins preaching religious reform among the Sanhaja Amazigh of the western SaharaMarks the beginning of the movement that becomes the Almoravids
1048 CEThe Zirid ruler in Ifriqiya renounces Fatimid Ismaʿili allegiance and recognizes the Abbasid caliphMarks Ifriqiya's formal break from Cairo, followed by migrations traditionally linked to Fatimid encouragement, discussed in this chapter
Mid-11th century CEMigration of the Banu Hilal and Banu Sulaym Arab tribal groups into IfriqiyaAccelerates Arabic-speaking pastoral settlement and reshapes Ifriqiya's political geography, discussed in this chapter
1062 CETraditional date for the founding of Marrakesh under Abu Bakr ibn ʿUmar and Yusuf ibn TashfinEstablishes the new Almoravid capital, discussed in this chapter
1086 CEBattle of al-Zallaqa (Sagrajas); Yusuf ibn Tashfin defeats Alfonso VI of León-CastileMarks the beginning of sustained Almoravid intervention in al-Andalus, discussed in this chapter
1090s CEAlmoravids annex most of the remaining taifa kingdoms of al-AndalusUnites Morocco and much of Iberia under a single Amazigh-led empire
c. 1121 CEIbn Tumart proclaims himself the Mahdi and begins organizing the Almohad (Muwahhidun) movement among the Masmuda of the High AtlasMarks the beginning of the reform movement that eventually overthrows the Almoravids
1130 CEDeath of Ibn Tumart; leadership passes to ʿAbd al-Muʾmin, a Kumiya Zanata Amazigh from the central MaghrebBegins the transformation of the Almohad movement into an imperial state, discussed in this chapter
1147 CEAlmohads capture Marrakesh, ending Almoravid rule in MoroccoEstablishes Almohad control over the former Almoravid heartland
1159–1160 CEAlmohad forces under ʿAbd al-Muʾmin conquer Ifriqiya and Tripolitania, expelling Norman garrisons from the North African coastExtends direct Almohad rule across the entire Maghreb, discussed in this chapter
1170s–1180s CEAlmohad rule over the Maghreb and much of al-Andalus reaches its fullest territorial and administrative consolidationMarks the empire's territorial height as the largest western Islamic state of the period
1212 CEAlmohad forces defeated at the battle of Las Navas de TolosaMarks the beginning of rapid Almohad decline in Iberia
1269 CEMarrakesh falls to the Marinid dynasty, ending Almohad ruleCloses the period examined in this chapter and opens the later medieval Maghrebi history examined in Chapter 39

Major People, Groups, and Places

Reference — Dynasties, Movements, People & Places

Idris I and Idris II
Founders of the Idrisid dynasty in the far Maghreb, claiming descent from the Prophet Muhammad through Ali and Fatima; Idris II is traditionally credited with substantially developing Fez.
Ibrahim ibn al-Aghlab
Founder of the Aghlabid dynasty, an Arab family with origins traced to Arabia by way of Khurasan, granted hereditary governorship of Ifriqiya by the Abbasid caliph in 800 CE while nominally remaining an Abbasid subordinate.
Kairouan
Ifriqiya's dominant urban, commercial, and religious center throughout the Aghlabid period, though the Aghlabid emirs themselves resided at the separate palatine settlements of al-ʿAbbasiyya and, after 876–877 CE, Raqqada, discussed further in this chapter.
The Rustamid imamate of Tahert
An Ibadi Kharijite polity in the central Maghreb, illustrating the durability of a religio-political community outside both Sunni and Shiʿi caliphal frameworks.
The Zirid and Hammadid dynasties
Sanhaja Amazigh dynasties installed as Fatimid deputies in Ifriqiya and the central Maghreb after 969 CE; the Zirids' 1048 renunciation of Fatimid allegiance is traditionally linked to the subsequent Hilali migrations, discussed further in this chapter.
The Banu Hilal and Banu Sulaym
Arab tribal confederations whose mid-eleventh-century migration into Ifriqiya disrupted existing political order and significantly accelerated the spread of spoken Arabic in the region, discussed further in this chapter.
ʿAbd Allah ibn Yasin
Religious reformer whose preaching among the Sanhaja Amazigh of the western Sahara initiated the movement that became the Almoravids.
Yusuf ibn Tashfin
Almoravid military and political leader who founded Marrakesh, expanded the empire across Morocco, and led the intervention in al-Andalus culminating in the battle of al-Zallaqa.
Marrakesh
City founded by the Almoravids around 1062 CE that became the capital of both the Almoravid and, later, the Almohad empires.
Ibn Tumart
Religious reformer of Masmuda Amazigh background who proclaimed himself Mahdi and founded the Almohad (Muwahhidun) movement, emphasizing a rigorous doctrine of divine unity.
ʿAbd al-Muʾmin
Successor to Ibn Tumart, of Kumiya Zanata Amazigh rather than Masmuda origin, who transformed the Almohad movement into a transregional empire spanning much of the Maghreb and al-Andalus.
The Sanhaja and Masmuda Amazigh confederations
Major Amazigh tribal groupings; the Sanhaja both founded and led the Almoravid movement throughout, while the Masmuda founded the Almohad movement under Ibn Tumart before its imperial dynasty passed to Kumiya Zanata leadership under ʿAbd al-Muʾmin.
Fez
City in the far Maghreb founded and developed under the Idrisids, later an important center of scholarship, trade, and political authority throughout the chapter's period.
al-Bakri
Andalusi geographer whose eleventh-century work provides valuable, though not infallible, descriptive evidence of Maghrebi towns, peoples, and trade routes.

Core Vocabulary Preview

The following key terms appear throughout this chapter. Students should understand each term before proceeding to later chapters.

MaghrebIfriqiyaAmazighSanhaja MasmudaKharijiteIbadiAlmoravid al-MurabitunAlmohadMuwahhidunMahdi TawhidBayʿaRibatTaifa Maliki schoolTrans-Saharan tradeIdrisid AghlabidAlid legitimacyNumismatics ZawiyaConfederation
Section 32.1

From Conquest to Regional Political Worlds

Chapter 19 described how Arab-Muslim armies advanced across North Africa in the decades following the conquest of Egypt, reaching the Atlantic coast of Morocco by the early eighth century and crossing into Iberia after 711. Chapter 20 examined how conquerors and conquered populations negotiated new arrangements of taxation, land tenure, and religious status across the newly incorporated territories. This chapter does not retell that conquest narrative. Instead, it begins from a simple but important observation: the political control the Umayyad and, after 750, the Abbasid caliphate could actually exercise over the Maghreb declined sharply the farther one traveled from Ifriqiya, the coastal strip roughly corresponding to modern Tunisia that had long served, first under Carthage and Rome and then under Byzantine rule, as North Africa's most densely settled and most easily governed region.

Beyond Ifriqiya, in the vast territories of the central and far Maghreb, effective caliphal authority was thin from the beginning and grew thinner still after the Abbasid Revolution examined in Chapter 24 shifted the empire's political center of gravity toward Iraq and Khurasan, thousands of kilometers to the east. Provincial governors appointed from Damascus or Baghdad struggled to maintain reliable communication, military support, or fiscal control across such distances, particularly once local Amazigh communities — many of them only recently and unevenly converted to Islam, and many of them retaining strong tribal and confederative structures of their own — began asserting religious and political claims that owed little to caliphal Arab authority.

This chapter's central historical development is therefore not a single conquest or a single dynasty, but a recurring pattern across several centuries: a religious or political movement arises, often among Amazigh communities operating outside the reach of any existing state; the movement recruits military support through kinship networks, religious appeal, or both; the movement's leadership founds or captures a capital city; and the resulting polity gradually develops the institutions of a full territorial state, sometimes eventually collapsing under the weight of its own success and giving way to a new movement organized along similar lines. The Idrisids, the Aghlabids, the Rustamid Ibadi imamate, the Almoravids, and the Almohads all illustrate variations of this pattern, and understanding it helps explain why the medieval Maghreb's political history looks so different from the more continuously centralized narratives of Umayyad Damascus or Abbasid Baghdad.

Section 32.2

The Medieval Maghreb: Geography and Regions

The term Maghreb, from the Arabic word for "place of sunset" or "west," refers to the region of North Africa lying west of Egypt, encompassing the territory of the modern states of Libya, Tunisia, Algeria, and Morocco, along with Mauritania's northern reaches and the western Sahara. Medieval geographers and historians, however, did not think of this territory as a single undifferentiated block, and students should resist doing so as well.

Ifriqiya — a name derived from the Latin "Africa" and originally applied to Roman Carthage's province — designated the fertile coastal and interior region roughly corresponding to modern Tunisia and adjoining parts of eastern Algeria and western Libya. As Chapter 11 explained, this region had been the heartland of Carthaginian and then Roman Africa, and it remained, after the Arab conquests, the Maghreb's wealthiest agricultural zone and its most important Mediterranean-facing political and commercial center, home to Kairouan and later Tunis.

The central Maghreb, corresponding roughly to the bulk of modern Algeria, presented a more varied landscape of coastal plains, the Tell Atlas mountains, and high steppe country transitioning southward into the Sahara. It hosted important but generally less centralized polities, including the Rustamid Ibadi imamate centered at Tahert.

The far Maghreb, corresponding roughly to modern Morocco, combined a Mediterranean and Atlantic coastline, the dramatic ranges of the Rif and Atlas mountains, fertile river valleys, and, to the south and east, the beginning of Saharan terrain. Its relative geographic isolation from Ifriqiya, separated by hundreds of kilometers of central Maghrebi terrain, helps explain why it developed political traditions — beginning with the Idrisids — substantially independent of events further east.

Finally, the Sahara itself, far from marking a simple boundary at which the Maghreb's history ended, functioned as a network of oasis chains, caravan routes, and pastoral zones connecting North Africa to West Africa, a connection this chapter examines in its discussion of trans-Saharan trade. Understanding this fourfold geography — Ifriqiya, the central Maghreb, the far Maghreb, and the Saharan interface — is essential to following the political narrative that follows, since different dynasties emerged from, and drew their core support from, different parts of this varied landscape.

Section 32.3

Amazigh Societies After the Conquests

The peoples the Arab conquerors encountered across North Africa, examined in their pre-Islamic context in Chapter 11, were overwhelmingly Amazigh — a term (singular Amazigh, often rendered in the plural as Imazighen) that refers to the diverse indigenous peoples of North Africa and their many related languages, sometimes still labeled "Berber" in older scholarship, a term of external and originally derogatory origin that many Amazigh communities today reject. Amazigh societies were not a single unified nation but a wide range of distinct tribal and confederative groups, organized around kinship, transhumant pastoralism, oasis agriculture, or settled farming depending on region and ecology, speaking related but not identical languages, and possessing, before the conquests, varied religious traditions including Christianity, Judaism, and older regional practices.

Islamization among these communities proceeded unevenly and, as Chapter 24 emphasized for the empire generally, should not be equated automatically with Arabization. Many Amazigh communities adopted Islam within a few generations of the conquests, often through the same processes of conversion, fiscal incentive, social integration, and genuine religious conviction examined in Chapter 24, but the Arabic language spread far more slowly and unevenly, remaining for centuries primarily the language of administration, religious scholarship, and urban commerce while Amazigh languages remained the everyday spoken language of most rural and many urban Amazigh communities well beyond the period this chapter examines.

What proved historically decisive was that Islamization, once it took hold, did not translate into simple political subordination to Arab rule. On the contrary, Amazigh communities repeatedly used the religious and legal vocabulary of Islam — including currents, discussed further below, that were themselves considered marginal or heterodox by mainstream Sunni or Shiʿi authorities — to organize political resistance to distant caliphal governors and, eventually, to found independent states of their own. The pattern that recurs across this chapter, from the eighth-century Kharijite revolts through the Almoravid and Almohad movements, involves Amazigh tribal confederations adopting a religious reform program, in some cases originating from outside currents and in some cases developed locally, and using that program to build new forms of supra-tribal political authority that transcended the limits of any single kinship group.

Section 32.4

The Idrisids and the Western Maghreb

Among the earliest and most historically significant Amazigh-supported states was the Idrisid dynasty of the far Maghreb. According to the traditional narrative preserved in later Arabic chronicles, Idris ibn ʿAbd Allah, a descendant of the Prophet Muhammad through his grandson Hasan ibn Ali, fled westward following the Abbasid suppression of an Alid uprising near Mecca in 786 CE, eventually arriving in the far Maghreb around 789 CE. There he settled among the Awraba, an Amazigh tribal confederation, near the old Roman-era site of Walila, also known as Volubilis, and was recognized as a religious and political leader — a recognition later tradition frames as owing significantly to his Alid genealogy, though the precise circumstances and the reliability of the earliest chronicle accounts remain subjects of scholarly caution.

Idris I died in 791 CE, reportedly poisoned at Abbasid instigation, but his posthumous son, Idris II, raised under Awraba guardianship, eventually assumed leadership and is traditionally credited with establishing the core Idrisid settlement at Fez around 809 CE. This initial founding should be distinguished from the city's subsequent growth into the two-bank urban center later tradition describes. Major waves of immigrant settlement arrived only in the following decades: a substantial community of Andalusi refugees reached Fez following the suppression of a revolt in Córdoba in 818 CE, settling on one bank of the river, while a further influx of settlers from Kairouan arrived amid unrest in Ifriqiya during the 820s, settling on the opposite bank — a pattern of sequential, rather than simultaneous, settlement later tradition uses to explain the names of Fez's two oldest quarters, the Andalusian and Kairouani quarters. Whatever the precise historical accuracy of the earliest chronicle details, Fez emerged during the Idrisid period as an important urban, religious, and commercial center of the far Maghreb, a status it would retain, with fluctuating political fortunes, across the many later centuries this textbook examines.

The Idrisid state itself illustrates a recurring pattern in Maghrebi history: political legitimacy claimed through descent from the Prophet's family (Alid or "sharifian" legitimacy) combined with practical dependence on Amazigh tribal military and social support. The Idrisids never developed the kind of centralized bureaucratic apparatus later Maghrebi empires would build, and their territory fragmented among rival branches of the family in the tenth century under pressure from both Fatimid and Umayyad Andalusi ambitions in the region. Nonetheless, the Idrisid period established the far Maghreb, and Fez specifically, as a genuine independent political and religious center rather than merely a distant frontier of Abbasid or Umayyad authority — a precedent the Almoravids and Almohads would later build upon in a much more ambitious form.

Section 32.5

The Aghlabids of Ifriqiya

Chapter 31 examined the Fatimid dynasty that eventually overthrew Aghlabid rule in Ifriqiya in 909 CE, but deliberately withheld a fuller treatment of the Aghlabids themselves in order to keep its focus on the Fatimid caliphate and its rivalry with Baghdad. This chapter takes up that fuller treatment, since the Aghlabid period represents an important chapter in its own right in the Maghreb's medieval political and economic history.

In 800 CE, the Abbasid caliph Harun al-Rashid granted Ibrahim ibn al-Aghlab hereditary governorship of Ifriqiya in exchange for an annual tribute payment, a pragmatic arrangement that allowed Baghdad to retain nominal sovereignty over a distant and difficult-to-govern province while granting a capable local governor effective autonomy. Like the Idrisids, the Aghlabid ruling family traced its own origins to Arabia, its ancestors having settled in Khurasan and entered Abbasid service before Ibrahim's appointment to Ifriqiya; the dynasty they founded, however, governed a predominantly local North African society with large Amazigh populations, and drew on a mixed military and administrative establishment that included the Arab jund (garrison troops) descended from the original conquest forces, Amazigh recruits, and, increasingly, enslaved soldiers, rather than resting on any single ethnic constituency.

The Aghlabids deliberately separated their princely court from the older city of Kairouan, which Arab forces had established as a garrison and administrative center generations earlier and which remained Ifriqiya's dominant urban, commercial, and religious center throughout the Aghlabid period. From the dynasty's founding, the emirs instead built and resided in the palatine settlement of al-ʿAbbasiyya just outside Kairouan, and in 876–877 CE the court relocated again to a new palace city, Raqqada, a short distance further from Kairouan. This pattern — a great religious and commercial metropolis on one hand, and a separate, purpose-built royal residence on the other — recurs across Maghrebi history and anticipates, in miniature, the later Almoravid and Almohad practice of founding entirely new imperial capitals rather than ruling directly from an existing city.

Under Aghlabid rule, Ifriqiya experienced substantial agricultural investment, including irrigation and water-management infrastructure of the kind examined in general terms in Chapter 3, supporting olive cultivation, grain production, and a prosperous urban economy centered on Kairouan's markets, mosques, and centers of Islamic legal scholarship, particularly within the Maliki school of law that would remain historically dominant across the Maghreb. Aghlabid naval power, based at Mediterranean ports including Sousse and Tunis, projected Ifriqiyan influence into the central Mediterranean, and from 827 CE onward Aghlabid forces began the prolonged conquest of Byzantine Sicily, eventually establishing durable Muslim rule over the island that would persist, in evolving form, for more than two centuries and would leave a lasting cultural and economic imprint on Sicilian and broader Mediterranean history.

When the Fatimid Ismaʿili movement overthrew Aghlabid rule in 909 CE and, after 969, shifted its own center of gravity to Egypt, it left the Zirid dynasty — Sanhaja Amazigh deputies originally installed to govern Ifriqiya on the Fatimids' behalf — as the region's effective rulers, while a related Hammadid line governed much of the central Maghreb from its own separate seat. This arrangement held until 1048, when the Zirid ruler al-Muʿizz ibn Badis renounced Ismaʿili allegiance and recognized the Abbasid caliph instead, a rupture that the Fatimids in Cairo are traditionally said to have answered by encouraging two large Arab tribal confederations, the Banu Hilal and the Banu Sulaym, to migrate westward into Ifriqiya. Over the following decades, these Hilali and Sulaymi migrations disrupted existing agricultural and urban patterns in parts of Ifriqiya, weakened Zirid central authority, and, over the longer term, significantly accelerated the spread of spoken Arabic among Ifriqiya's rural and pastoral population — a linguistic and demographic transformation historians consider one of the most consequential developments in the region's medieval history, and one that helps explain why Ifriqiya's countryside became more thoroughly Arabic-speaking, more quickly, than much of the far Maghreb. Ifriqiya's political landscape remained fragmented among Zirid, Hammadid, and various local successor rulers through the eleventh century, setting the stage for the Almohad conquest of the region examined later in this chapter.

Aghlabid rule was never entirely secure. It faced recurring military revolts, tension between the ruling family and the region's Arab military and urban religious establishment, and periodic challenges from Kharijite-influenced communities in the interior. When the Fatimid Ismaʿili missionary movement, examined fully in Chapter 31, gained a decisive following among Kutama Amazigh tribesmen in the region and overthrew Aghlabid rule in 909 CE, it inaugurated a new and, for a time, far more ambitious political project — but the century of relative Aghlabid stability had already established Ifriqiya's enduring importance as the Maghreb's wealthiest and most urbanized sub-region, a status Kairouan and later Tunis would retain long after Aghlabid rule itself ended.

Section 32.6

Religious Diversity and Political Life

The Maghreb's medieval religious landscape was considerably more varied than a simple picture of gradual Sunni consolidation would suggest, and that variety mattered directly for political history rather than remaining a matter of abstract theology. Kharijite currents — deriving originally from disputes over leadership and moral authority that arose during the First Fitna examined in Chapter 21 — found a substantial and durable following among Amazigh communities beginning in the eighth century, in part because Kharijite doctrine's emphasis on merit and piety over lineage or ethnicity as the basis of legitimate leadership offered an appealing alternative to Arab dynastic claims that many Amazigh communities had reason to resent.

The most durable Kharijite-derived polity was the Ibadi imamate centered at Tahert in the central Maghreb, founded in the mid-eighth century and lasting until 909 CE, when it too fell to the rising Fatimid movement. Ibadi communities, more moderate in doctrine than some other Kharijite currents, survived the Rustamid imamate's political collapse and persisted as a distinct religious minority in parts of the Maghreb, including the Mzab region of Algeria and Djerba in Tunisia, into the modern period examined in later chapters.

Shiʿi currents, most prominently in the Ismaʿili missionary movement examined in Chapter 31, found their most consequential Maghrebi following among the Kutama Amazigh of the Kabylia region, whose military support proved decisive in establishing Fatimid rule over Ifriqiya. Sunni Islam, meanwhile, particularly within the Maliki legal school that became the Maghreb's dominant juridical tradition, remained strong especially in urban centers such as Kairouan and, later, Fez and Marrakesh, and Maliki religious scholars would play an important role first in resisting and later in providing intellectual justification for the Almoravid and Almohad states examined later in this chapter.

This religious diversity helps explain a recurring pattern across the chapter: movements claiming religious reform or renewed piety repeatedly found receptive audiences among Amazigh populations who had reason, for social, economic, or political motives as much as narrowly theological ones, to support challenges to established authority. Understanding this context is essential background for the Almoravid and Almohad movements examined later in the chapter, both of which combined genuine religious reform programs with the mobilization of specific Amazigh tribal confederations against existing rulers.

Section 32.7

North Africa and al-Andalus

The Strait of Gibraltar, only about fourteen kilometers wide at its narrowest point, connected rather than divided the medieval Maghreb and Iberia, and this chapter's later sections on the Almoravid and Almohad empires depend on that connection being understood clearly from the outset. Since the original conquest of Iberia in 711 CE, described in Chapter 19, the two shores had remained linked by continuous movement of soldiers, administrators, merchants, scholars, and, at various points, political refugees. Amazigh troops made up a substantial portion of the original conquering armies in Iberia, and Amazigh settlement in various regions of al-Andalus continued for centuries afterward.

This chapter is not the place for a full history of Umayyad Córdoba or of the taifa kingdoms into which Andalusi Umayyad authority fragmented after 1031 CE; that history belongs primarily to other parts of the textbook's treatment of al-Andalus. What matters here is that by the middle of the eleventh century, the taifa kingdoms — numerous, often mutually hostile, and increasingly vulnerable to pressure from the expanding Christian kingdoms of northern Iberia — found themselves in need of military assistance that they frequently sought from across the strait, in the Maghreb. This need would prove decisive in drawing first the Almoravids and later the Almohads into sustained intervention in Iberian affairs, a dynamic this chapter examines in its dedicated sections on each movement's Andalusi campaigns.

Scholarly and cultural exchange moved in both directions across the strait throughout this period. Legal scholars trained in the Maliki tradition moved between Kairouan, Fez, Córdoba, and later Marrakesh; geographers such as al-Bakri, examined in this chapter's Primary Source Window, wrote from an Andalusi vantage point about Maghrebi towns and peoples; and Andalusi artistic and architectural styles influenced Almoravid and, especially, Almohad monumental building in Marrakesh, Rabat, and Seville alike. The western Islamic world of this period, in other words, is best understood as a single interconnected cultural and political sphere straddling the strait, even though this chapter keeps its primary narrative focus on the Maghrebi side of that sphere.

Section 32.8

Trade Across the Sahara

Just as the Maghreb faced north toward the Mediterranean and al-Andalus, it also faced south, across the Sahara, toward the trading and political worlds of West Africa. This chapter does not attempt a full history of the West African states of Ghana, Mali, or the broader trans-Saharan commercial system, a subject that belongs more fully to later chapters and to specialized regional treatment; but no history of the medieval Maghreb can proceed without acknowledging this southward dimension, since Saharan trade shaped Maghrebi urban wealth, political geography, and demographic composition throughout the period this chapter examines.

Camel-based caravan routes, made practical by the spread of camel domestication and pastoral use discussed in Chapter 3 and Chapter 12, connected Saharan oasis towns — including Sijilmasa in the far Maghreb, a critically important northern terminus of trans-Saharan trade — to trading centers south of the desert. Gold, mined in West African goldfields, moved north across the Sahara in substantial quantities, becoming a foundation of Maghrebi and, through re-export, wider Mediterranean and European monetary systems; salt, mined at Saharan sites such as Taghaza, moved south, where it commanded high value in regions lacking easy access to salt deposits; and enslaved people, captured or purchased in sub-Saharan regions, were transported north across the Sahara as part of a trade whose scale, mechanisms, and human costs are the subject of ongoing scholarly research and are discussed further in relation to broader patterns of slavery and trade examined across this textbook.

Control over Saharan trade routes and their northern termini was a matter of direct political significance for Maghrebi states, and the Almoravid movement examined later in this chapter emerged directly from a Sanhaja Amazigh population whose political and economic life was deeply oriented toward these Saharan trade networks, a background that shaped the movement's initial recruitment and its later imperial reach in ways this chapter's discussion of Almoravid origins will explain further.

Section 32.9

The Rise of the Almoravids

The Almoravid movement, known in Arabic as al-Murabitun (a term connected to the ribat, a fortified religious retreat or frontier outpost), originated among the Sanhaja Amazigh confederation of the western Sahara, a group whose political and economic life, as the previous section explained, was closely bound up with trans-Saharan trade routes and camel-based pastoral mobility. According to the traditional account, a Sanhaja chief returning from pilgrimage to Mecca sought a religious scholar to instruct his people in correct Islamic practice, and this search eventually brought the reformer ʿAbd Allah ibn Yasin to the region around 1040 CE.

Ibn Yasin's teaching emphasized strict adherence to Maliki Sunni legal doctrine, rigorous personal piety, and moral discipline, delivered initially to a small community gathered at a ribat — a fortified religious retreat, traditionally located on an island or in a remote frontier location, though its precise location remains debated among specialists. From this small, disciplined religious community, the movement grew into a formidable military and political force, drawing on Sanhaja tribal military capacity and organized around Ibn Yasin's religious authority and, after his death in battle in 1059 CE, the political leadership of Sanhaja chiefs including Abu Bakr ibn ʿUmar and, increasingly, his cousin Yusuf ibn Tashfin.

The Almoravid movement's early military campaigns extended Sanhaja authority across the western Sahara and into the Sous valley and southern Morocco, and by the 1060s and 1070s the movement's leadership, now effectively under Yusuf ibn Tashfin following a division of responsibilities with Abu Bakr, turned northward to conquer the rest of Morocco, displacing a patchwork of smaller local rulers and Amazigh polities. This transition — from a religious reform movement rooted in Saharan trade networks to a conquering territorial power ruling settled agricultural and urban populations across Morocco — represents one of the chapter's clearest illustrations of the pattern, introduced in Section 32.1, by which Maghrebi religious movements became imperial states.

Section 32.10

Marrakesh and Almoravid State-Building

Around 1062 CE, Yusuf ibn Tashfin founded a new city, Marrakesh, on a plain south of the High Atlas mountains, selecting a location with reliable water supply — drawn through underground channels similar in principle to the qanat systems discussed in Chapter 3 — and strategic access to both the Atlas passes leading toward the Sahara and the agricultural plains of central Morocco. Marrakesh rapidly developed from a military encampment into a genuine imperial capital, complete with a congregational mosque, palace complex, fortified walls, and a growing urban population of administrators, merchants, and scholars.

Almoravid state-building drew heavily on Maliki Sunni legal scholarship for its institutional and ideological foundations, in contrast to the Ismaʿili Shiʿi doctrine that had underpinned Fatimid authority examined in Chapter 31. Maliki jurists provided legal legitimacy for Almoravid rule, staffed emerging judicial institutions, and, at least initially, welcomed a movement that presented itself as restoring correct religious practice against the laxity Almoravid propaganda attributed to existing rulers, including the Andalusi taifa kings discussed in the next section.

The Almoravid state developed the practical apparatus of an expanding empire: a standing military drawing heavily on Sanhaja and other Amazigh tribal levies as well as, increasingly, sub-Saharan and Andalusi troops; taxation systems adapted from existing regional practice; and administrative structures overseeing conquered territories across Morocco and, soon, al-Andalus. Yet Almoravid rule never developed the kind of elaborate centralized bureaucracy that characterized, for instance, contemporary Fatimid Egypt, and much local governance across the empire continued to rest on negotiated relationships with regional elites, tribal leaders, and urban notables rather than direct central administration — a point this chapter's later discussion of the limits of Almoravid and Almohad centralization will develop further.

Section 32.11

The Almoravids and al-Andalus

By the 1080s, the taifa kingdoms of al-Andalus, weakened by decades of internal rivalry since the Umayyad caliphate's fragmentation, faced growing pressure from the expanding Christian kingdom of León-Castile under Alfonso VI, who had captured the strategically vital city of Toledo in 1085 CE. Facing the prospect of further Christian conquest, several taifa rulers appealed across the Strait of Gibraltar for Almoravid military assistance, despite well-founded anxiety that inviting so powerful an Amazigh military force into Iberian affairs might cost them their own thrones as readily as it might save their kingdoms from Christian conquest.

Yusuf ibn Tashfin crossed into al-Andalus in 1086 CE and, at the battle of al-Zallaqa, known in Spanish historiography as Sagrajas, decisively defeated Alfonso VI's forces near Badajoz. This victory halted, at least temporarily, the momentum of Christian territorial expansion in the Iberian Peninsula and established the Almoravids as the dominant military power in the region. Over the following decade, and following further campaigns, Yusuf ibn Tashfin and his successors moved from military intervention to outright annexation, deposing most of the remaining taifa rulers and incorporating their territories directly into the Almoravid empire by the 1090s and early twelfth century.

This chapter treats Almoravid intervention in al-Andalus primarily as a demonstration of the Maghreb's capacity to project decisive political and military power northward across the strait, reversing the direction of influence that a narrative centered on Córdoba's earlier conquest of Iberia might otherwise imply. A fuller history of Andalusi politics, culture, and society under the Almoravids, and of the complex reception of Almoravid rule among the Andalusi population — including tensions between Amazigh rulers and Andalusi urban elites accustomed to Umayyad-era courtly culture — belongs to the textbook's fuller treatment of al-Andalus rather than to this chapter's Maghreb-centered narrative.

Section 32.12

The Almohad Movement

Even as the Almoravid empire reached its territorial height, the seeds of a rival reform movement were forming among the Masmuda Amazigh confederation of the High Atlas mountains, a different Amazigh grouping from the Saharan Sanhaja who had founded the Almoravid movement. The central figure was Muhammad ibn Tumart, a religious scholar who had studied in the intellectual centers of the eastern Islamic world, including reportedly Baghdad, before returning to the Maghreb around 1117–1120 CE deeply critical of what he regarded as the Almoravids' religious laxity, excessive reliance on Maliki legal literalism at the expense of deeper theological reasoning, and moral corruption.

Around 1121 CE, Ibn Tumart proclaimed himself Mahdi — a divinely guided figure expected, in various strands of Islamic eschatological thought, to appear and restore true religion before the end of times — and began organizing a reform movement among the Masmuda communities of the Atlas, with its base at Tinmal in the mountains south of Marrakesh. The movement took the name al-Muwahhidun, meaning "those who affirm the oneness of God," rendered in English historiography as "Almohad," and its doctrine emphasized a rigorous and philosophically informed insistence on divine unity (tawhid) that Ibn Tumart argued the Almoravids had compromised through what he considered an overly literal and anthropomorphic reading of scripture.

Students should take Ibn Tumart's theological claims seriously as genuine intellectual and religious positions rather than dismissing them as a mere pretext for political ambition, while also recognizing that the movement's organization — combining strict internal hierarchy, a systematic hierarchy of ranked followers, and effective military mobilization of Masmuda tribal manpower — served state-building purposes from a very early stage. This dual character, genuinely religious and simultaneously oriented toward the seizure of political power, recurs as a central theme of this chapter's Historical Debate feature.

Section 32.13

ʿAbd al-Muʾmin and Almohad Imperial Expansion

Ibn Tumart died in 1130 CE, after early Almohad military efforts against the Almoravids had met with mixed success, and leadership of the movement passed to ʿAbd al-Muʾmin, a capable military and political leader who is generally credited with transforming the Almohad movement from a regional Atlas-based religious community into an empire spanning the entire western Islamic world. Unlike Ibn Tumart, ʿAbd al-Muʾmin was not himself Masmuda; he came from the Kumiya, a Zanata Amazigh group of the central Maghreb, and his succession to the movement's leadership illustrates that Almohad authority, from an early stage, extended beyond a single founding confederation even as Masmuda tribal leaders continued to hold substantial power within the movement's governing structure. Over the following decades, ʿAbd al-Muʾmin systematically conquered Almoravid territory, capturing Marrakesh itself in 1147 CE and ending Almoravid rule in Morocco, before extending Almohad authority eastward across the rest of the Maghreb, including Ifriqiya, and northward into al-Andalus.

By the 1170s and 1180s, under ʿAbd al-Muʾmin's successors, the Almohad empire reached its greatest territorial extent, governing the entire Maghreb from the Atlantic to Ifriqiya and much of al-Andalus, making it, for a period, the largest and most powerful state in the western Islamic world and one of the largest polities in the Mediterranean basin as a whole. ʿAbd al-Muʾmin and his successors adopted the caliphal title, asserting a claim to supreme religious and political authority that implicitly rivaled both the Abbasid caliphate in Baghdad, by this point politically constrained while retaining substantial Sunni caliphal legitimacy and symbolic authority, as Chapter 33 will explain, and the memory of earlier caliphal claims in the region.

Almohad military and administrative organization built upon, while substantially expanding, patterns already visible under the Almoravids: a core military drawing on Masmuda and other Amazigh tribal levies, supplemented over time by mercenary and allied forces including Christian mercenaries in Iberia; an administrative apparatus overseeing an enormous and ecologically and culturally varied territory; and a distinctive ideological apparatus built around Almohad doctrine, expressed through official documents, coinage, and monumental architecture that asserted the dynasty's religious legitimacy in explicitly theological terms.

Section 32.14

The Western Islamic World as an Imperial System

Rather than narrating every campaign of Almohad rule in al-Andalus, this section synthesizes what the Almohad empire's scale reveals about the medieval western Islamic world as an interconnected system. At its height, the empire linked Marrakesh, its imperial capital and religious center; Fez, an important center of scholarship and commerce in the far Maghreb; Tunis and the broader Ifriqiyan region, incorporated into Almohad rule after earlier passing through Fatimid and successor governance following the pattern examined in Chapter 31; and Seville, which functioned as the Almohads' principal Andalusi capital and a major center of court culture, commerce, and monumental building, including the mosque whose surviving minaret, later converted into the Giralda bell tower, remains among the era's most recognizable architectural monuments.

Trade, military movement, scholarly exchange, and administrative communication connected these centers across enormous distances, from the edge of the Sahara to central Iberia, demonstrating that the western Islamic world of this period functioned as a genuinely integrated political and cultural system rather than a loose collection of separately governed territories. Ports along the Moroccan Atlantic and Mediterranean coasts, together with Andalusi ports including Seville and Almería, facilitated troop transport across the strait and commercial exchange throughout the Mediterranean and, via Atlantic and Saharan routes, beyond it.

This synthesis matters directly for the chapter's larger argument. During the very period when the Fatimid and, as later chapters will show, Ayyubid and early Mamluk states dominated Egypt and the eastern Mediterranean, and while the Seljuk-influenced Abbasid world examined in Chapter 33 dominated Iraq and much of Syria, an entirely separate and, for a time, comparably powerful imperial system flourished in the far west, governed by dynasties of Amazigh rather than Arab origin. The medieval Islamic world, this chapter's evidence suggests, is better understood as a set of overlapping and often rival centers of power than as a single political system radiating outward from any one capital.

Section 32.15

Cities, Scholarship, and Society

Beyond dynastic politics and military campaigns, the Maghreb's Almoravid and Almohad centuries produced a rich urban and intellectual life. Kairouan, though eclipsed politically after the Fatimid period, remained an important center of Maliki legal scholarship; Fez continued to develop as a center of religious learning, commerce, and craft production, its status enhanced by the long-established mosque-university of al-Qarawiyyin, whose origins reach back to the ninth century; and Marrakesh, purpose-built as an imperial capital, grew rapidly into a major metropolitan center under both the Almoravids and the Almohads, hosting palaces, congregational mosques including the Almohad-era Kutubiyya, markets, and a diverse population of Amazigh, Arab, Andalusi, sub-Saharan African, and Jewish residents.

Jewish communities were present in significant numbers across Maghrebi and Andalusi cities throughout this period, participating actively in trade, craft production, and, in some periods and courts, administration and scholarship. Under the Almoravids and under most other Maghrebi and Andalusi dynasties examined in this textbook, Jewish and Christian communities generally retained the legal status of protected, tax-paying religious minorities (dhimmis) familiar from Chapter 20's discussion of the early Islamic conquests, a subordinate but recognized status that, in practice, allowed considerable communal, religious, and economic continuity. The early Almohad period represented a sharp and well-documented departure from this pattern. Almohad sources and later chronicles describe a policy, associated particularly with the reigns of ʿAbd al-Muʾmin and his immediate successors, that abolished the normal legal protections of dhimmi status and compelled Jewish and Christian communities across the empire to convert to Islam or face severe penalties, including, for some, actual or threatened execution. Many Jewish families experienced this coercion directly; the family of the philosopher and physician Moses Maimonides ultimately fled Almohad-held territory, though some scholarship suggests that they, like other Jewish families who remained for a time under Almohad rule, may have outwardly conformed to Islam under duress before eventually departing, and communities that remained or converted under pressure faced continuing suspicion regarding the sincerity of their new faith. Historians note that enforcement and severity varied by region, period, and local governor, and that the policy appears to have relaxed somewhat under later Almohad rulers, but the episode remains one of the most significant instances of large-scale religious coercion examined anywhere in this textbook's medieval chapters, and it should not be minimized or described only in the vague terms sometimes used for more ordinary fluctuations in minority status.

Architecturally, the Almoravid and, especially, the Almohad periods produced enduring monuments that fused Andalusi and Maghrebi artistic traditions, including elaborately decorated mosques, monumental minarets such as the Kutubiyya in Marrakesh and the Giralda in Seville, and fortified city walls and gates whose scale reflected the resources a genuinely imperial state could mobilize. Rural society across the empire, meanwhile, remained heavily oriented around the agricultural, pastoral, and trans-Saharan commercial patterns examined earlier in this chapter, with tribal confederations continuing to provide much of the military manpower, and often much of the regional governance, on which the imperial superstructure ultimately depended.

Section 32.16

Limits of Empire and Regional Diversity

Neither the Almoravid nor the Almohad empire should be imagined as a centralized, uniformly administered territorial state in the modern sense. Both empires governed enormous, ecologically and culturally varied territories through a combination of direct rule in core areas — particularly around the imperial capital and major cities — and indirect, negotiated authority over tribal confederations, regional elites, and local urban notables elsewhere. Amazigh tribal identity and organization persisted throughout both periods; imperial rule did not erase local political structures so much as layer a new supra-tribal authority atop them, an authority whose reach and intensity varied considerably by region and period.

Religious diversity, too, persisted despite each movement's initial reform program, though unevenly and, for non-Muslim communities under the early Almohads, at severe cost. Maliki legal scholarship remained influential even as Almohad doctrine, at least in its early and more rigorous phase, criticized aspects of Maliki practice; Jewish and Christian communities, whose experience under the Almoravids had generally followed the older protected-minority pattern, faced forced conversion and displacement under early Almohad policy, as Section 32.15 explained, before some relaxation under later rulers; and regional variation in religious practice, language, and custom remained pronounced across a territory stretching from the Sahara's edge to central Iberia. Both empires, moreover, ultimately proved vulnerable to the same cycle of religious and tribal challenge that had brought them to power in the first place: Almoravid rule gave way to Almohad conquest, and Almohad rule itself would eventually give way, following the decisive defeat at Las Navas de Tolosa in 1212 CE, to renewed regional fragmentation and, ultimately, the rise of the Marinid dynasty examined in Chapter 39.

Recognizing these limits matters for avoiding an overly triumphalist narrative of Maghrebi imperial achievement. The Almoravid and Almohad empires were genuinely powerful and historically significant, but they were also, like the Abbasid and Fatimid states examined elsewhere in this Part, imperfectly centralized, internally diverse, and ultimately impermanent political constructions built atop a much more enduring substrate of regional, tribal, and religious diversity.

Section 32.17

Amazigh Power and the Meaning of "Arab World"

This chapter's evidence bears directly on one of this textbook's foundational commitments, stated in Chapter 1: that "Arab World" is the organizing subject of this book, not a synonym for Islam or the Middle East, and that peoples including the Amazigh must remain visible rather than disappearing inside an undifferentiated "Arab" population. The history examined in this chapter demonstrates why that commitment matters concretely, and it also shows why a simple binary of "Arab dynasty" versus "Amazigh dynasty" would itself be too crude a tool for describing what actually happened in the medieval Maghreb.

The dynasties examined in this chapter in fact illustrate at least three distinct patterns, and keeping them separate sharpens rather than weakens the chapter's larger argument. The Idrisids were an Arab and, more specifically, Alid ruling house: Idris I arrived in the far Maghreb as a claimant descended from the Prophet's family, and his authority, and that of his son Idris II after him, depended from the very outset on the political and military backing of the Awraba Amazigh confederation, without which the dynasty could not have been established or protected. The Aghlabids were likewise an Arab governing family, their own origins traced to Arabia by way of Khurasan and Abbasid service, ruling a predominantly local North African society with large Amazigh populations and a mixed military and administrative establishment that also included the Arab jund and enslaved soldiers. Only with the Almoravids and Almohads does the pattern shift to dynasties that were themselves Amazigh in leadership from top to bottom, even if not always from a single confederation: the Sanhaja confederation that produced ʿAbd Allah ibn Yasin and Yusuf ibn Tashfin supplied both the Almoravid movement's founding religious leadership and its ruling dynasty, while the Almohad movement arose among the Masmuda of the High Atlas under Ibn Tumart but passed, after his death, to ʿAbd al-Muʾmin, a Kumiya Zanata Amazigh from the central Maghreb whose own imperial dynasty then ruled over a Masmuda-founded movement whose leading tribal families continued to hold substantial power. In both cases, however, the movement's founding religious leadership, its principal military base, and, at least initially, its ruling dynasty were Amazigh rather than Arab, in clear contrast to the Idrisid and Aghlabid pattern described above.

This more precise picture strengthens rather than undermines the chapter's central point. It would be a serious error to describe the Idrisids or Aghlabids as "Amazigh dynasties," since doing so would erase the specific Arab and, in the Idrisid case, Alid identity of their ruling houses and would obscure the distinctive form of dependence — an Arab dynasty resting on Amazigh military and political backing — that made both states possible in the first place. It would be an equally serious error to describe the Almoravids and Almohads as simply another chapter in a continuous story of Arab rule, since their founding leadership, unlike that of the Idrisids and Aghlabids, was genuinely and thoroughly Amazigh. All four dynasties, regardless of their ruling family's origin, operated within an increasingly Arabic-speaking administrative and religious culture, patronized Arabic scholarship, and, in the Almohad case, adopted an Arabic-derived caliphal title asserting supreme Islamic authority — a reminder that Arabization, as Chapter 24 established, is a linguistic and cultural process distinct from both Islamization and from the ethnic origin of a given ruling dynasty, and that all three of these variables must be tracked separately rather than assumed to move together. The Maghreb's later, more fully Arabized identity, examined in relevant respects in Chapters 39, 52, and 60, emerged through a long historical process — one this chapter's account of the Banu Hilal and Banu Sulaym migrations has already begun to trace for Ifriqiya specifically — rather than existing readymade at the time of any of the dynasties examined in this chapter.

Section 32.18

The Western Half of a Multipolar Islamic World

This chapter closes Part VI's western trajectory and prepares the transition to Chapter 33's eastward turn. Chapter 31 demonstrated that Cairo, under Fatimid rule, could rival Baghdad as a center of caliphal authority and Mediterranean commerce. This chapter has demonstrated that the Maghreb was not a peripheral extension of that eastern rivalry at all: it generated its own powerful states, many of them built through Amazigh political and religious movements largely independent of events in Baghdad or Cairo, and at times, as the Almoravid and Almohad empires show, these Maghrebi states projected decisive military and political power northward into al-Andalus and maintained significant commercial and demographic connections southward across the Sahara.

By the close of the period this chapter examines, the medieval Islamic world's political geography included at least four significant, only loosely connected centers of power: Baghdad, where Abbasid caliphal authority, as Chapter 33 will explain, had become increasingly dependent on Turkish military power even as it retained important religious and symbolic significance; Cairo, the seat first of Fatimid and, in later chapters, Ayyubid and Mamluk authority; Córdoba and, after its fragmentation, the shifting Andalusi centers eventually absorbed into Almoravid and Almohad rule; and Marrakesh, the purpose-built capital from which Amazigh-led empires governed the far western Islamic world at the height of its medieval power. Chapter 33 now turns east, to examine how Seljuk Turkish military power reshaped the relationship between the Abbasid caliphate and effective political authority across Iraq and Syria — a transformation as consequential for the eastern Arab lands as the Almoravid and Almohad empires were for the west.

Historical Vocabulary
Muwahhidun and the Meaning of "Almohad"

The Arabic term al-Muwahhidun, from which the European historiographical term "Almohad" derives, means roughly "those who affirm the oneness of God" or "unitarians." The term reflects the central theological claim at the heart of Ibn Tumart's reform program: that correct belief required a rigorous, philosophically grounded affirmation of God's absolute unity (tawhid), free of any implication — which Ibn Tumart argued some existing religious teaching in the Maghreb had allowed to creep in, whether through overly literal scriptural interpretation or popular religious practice — that God possessed body-like attributes or could be compared to created things.

Students should understand this as a genuine and historically significant theological position, connected to broader currents of Islamic theological and philosophical reasoning (kalam) current in the wider Islamic world at the time, rather than as an empty slogan. At the same time, the term also functioned as the movement's own chosen political self-identification, distinguishing its followers sharply from the Almoravids (al-Murabitun) whom the movement sought to displace, and later Almohad rulers used the caliphal title in ways that asserted supreme religious authority extending well beyond narrow theological doctrine.

The English historiographical convention "Almohad," used throughout this chapter for readability, is a European rendering of the Arabic term and should not obscure its specific theological content when students encounter the term in more specialized reading.

Historical Vocabulary
Bayʿa and Tribal Confederation

The bayʿa is a formal act of allegiance or oath of loyalty, historically sworn to a caliph, ruler, or claimant to religious-political leadership by subordinates, tribal leaders, or other recognized authorities. Both the Almoravid and Almohad movements relied heavily on bayʿa ceremonies to formalize the allegiance of Amazigh tribal confederations to their respective leaderships, converting what began as personal religious loyalty to a reformer such as ʿAbd Allah ibn Yasin or Ibn Tumart into a more durable and reproducible form of political obligation that could, in principle, be extended to a leader's successors.

A tribal confederation, in this context, refers to an alliance of related or allied kinship groups — such as the Sanhaja or Masmuda — that could act collectively for military, political, or religious purposes while retaining internal distinctions of lineage, territory, and local leadership. Understanding the confederation as the basic building block of Almoravid and Almohad military and political power helps explain both the speed with which these movements could mobilize large forces and the persistent challenge, discussed in Section 32.16, of converting confederative loyalty into a durable, centralized imperial state.

Timeline Study

From Reform Movement to Transregional Empire

PeriodDevelopmentSignificance
c. 1040 CEʿAbd Allah ibn Yasin begins preaching among the SanhajaMarks the origin of a Saharan religious reform community, discussed in Section 32.9
1059 CEDeath of Ibn Yasin in battleShifts movement leadership toward Sanhaja military chiefs, notably Yusuf ibn Tashfin
1062 CEFounding of MarrakeshEstablishes a permanent imperial capital, discussed in Section 32.10
1086 CEBattle of al-Zallaqa (Sagrajas)Begins sustained Almoravid intervention in al-Andalus, discussed in Section 32.11
c. 1121 CEIbn Tumart proclaims himself Mahdi among the MasmudaMarks the origin of the rival Almohad reform movement, discussed in Section 32.12
1147 CEAlmohad capture of MarrakeshEnds Almoravid rule and transfers the imperial capital to Almohad control, discussed in Section 32.13
1170s–1180s CEAlmohad empire reaches its greatest territorial extentUnites the Maghreb and much of al-Andalus under a single Amazigh-led caliphate, discussed in Section 32.14
1212 CEAlmohad defeat at Las Navas de TolosaBegins rapid Almohad decline in Iberia, discussed in Section 32.16
1269 CEMarinid capture of MarrakeshEnds Almohad rule and opens the later medieval Maghrebi history of Chapter 39

Timeline Analysis Questions:

  1. What common pattern connects the origins of both the Almoravid and Almohad movements?
  2. Why might the founding of a new capital city, such as Marrakesh, matter as much historically as a military victory?
  3. How does the sequence from Almoravid rise to Almohad conquest of the Almoravids illustrate the cyclical pattern of religious-political movements described in Section 32.1?
  4. Why does the empire's 1212 defeat at Las Navas de Tolosa mark the beginning, rather than the end, of a longer process of Almohad decline?
Geography Study

The Maghreb Between Three Seas of Sand and Water

Using a physical and political map of the medieval western Islamic world, students should locate and identify:

  • Ifriqiya, the central Maghreb, and the far Maghreb as distinct sub-regions
  • Kairouan, Fez, and Marrakesh as successive major political and religious centers
  • The Strait of Gibraltar and its role connecting the Maghreb to al-Andalus
  • Seville and Córdoba as major Andalusi centers incorporated into Almoravid and Almohad rule
  • Sijilmasa and other Saharan trade termini connecting the Maghreb southward
  • The High Atlas mountains as the Masmuda Amazigh homeland from which the Almohad movement emerged
  • Tahert as the center of the Rustamid Ibadi imamate in the central Maghreb

Geography Analysis Questions:

  1. Why might the far Maghreb have developed political traditions more independent of Ifriqiya than of events much closer to it?
  2. How does Marrakesh's location relative to both the Atlas passes and the Sahara help explain its selection as an imperial capital?
  3. Why would control over Saharan trade termini such as Sijilmasa matter directly to a state's political power?
  4. What does the geographic reach of the Almohad empire, from the Sahara's edge to central Iberia, suggest about the logistical and military capacities such a state required?
Primary Source Window

Al-Bakri, Kitab al-Masalik wa-l-Mamalik ("Book of Routes and Realms"), on Sijilmasa, 11th century CE

Creator: Abu ʿUbayd al-Bakri, Andalusi geographer and scholar · Date: composed c. 1068 CE · Type: Geographical and descriptive compilation drawing on earlier written sources, merchant reports, and travelers' accounts, compiled from Córdoba without the author himself having traveled extensively in the regions he describes

Context: Al-Bakri wrote from al-Andalus during the eleventh century, drawing together earlier geographical writing, official records, and information gathered from merchants and travelers. His entry on Sijilmasa, the key Saharan trade town of the far Maghreb introduced in Section 32.8, is among the fuller and more concrete town descriptions in his work. The passage below is a modern paraphrase of al-Bakri's Sijilmasa entry, not a translated quotation, and students should treat it accordingly.

Modern paraphrase of al-Bakri's Sijilmasa entry: Al-Bakri describes Sijilmasa as enclosed by a defensive wall and surrounded by numerous gardens and palm groves supporting the cultivation of dates, vines, and other fruit. He distinguishes two separate water sources serving the town: brackish well water used for drinking, and the water of the river running past and through the settlement, which divided into several branches and was collected in basins to irrigate the surrounding gardens and fields. He describes the town as a major gathering point for caravans departing toward and arriving from the lands south of the Sahara, notes the presence of a diverse merchant population drawn by this trade, and records that considerable wealth in gold passed through the town's markets as a result of its position on the trans-Saharan routes.

Analysis: This passage is valuable to students of this chapter because it supplies concrete descriptive detail — fortification, distinct water sources for drinking and irrigation, agriculture, and commercial function — of exactly the kind of Saharan trade town discussed in Section 32.8, detail that dynastic chronicles, focused on rulers and military campaigns, often omit. The distinction al-Bakri draws between brackish well water used for drinking and river water managed through basin irrigation is a useful concrete illustration of the oasis water-management strategies discussed in Chapter 3. At the same time, because al-Bakri compiled his account from earlier written sources and secondhand travelers' reports rather than personal travel through most of the regions he describes, historians treat some of his specific claims, particularly quantitative claims about wealth and trade volume, with appropriate caution, cross-checking them where possible against archaeological evidence and other written sources such as the later work of al-Idrisi.

Questions for students:

  1. What specific features of Sijilmasa does al-Bakri's account emphasize, and what do those features suggest about the town's function?
  2. Why does al-Bakri distinguish between well water and river water at Sijilmasa, and what does that distinction reveal about the town's water-management strategy?
  3. Why should historians treat al-Bakri's claims about the scale of Sijilmasa's gold trade with more caution than his description of its walls or water sources?
  4. How might archaeology at the site of Sijilmasa help historians evaluate the reliability of al-Bakri's description?
Historical Debate

Were the Almoravids and Almohads Primarily Religious Reform Movements or Imperial State-Building Projects?

The question: Both the Almoravid and Almohad movements began as programs of religious reform led by figures — ʿAbd Allah ibn Yasin and Ibn Tumart — who presented themselves as restoring correct Islamic belief and practice. Both movements also ended as large territorial empires ruled by dynasties that adopted many of the trappings of conventional medieval statecraft, including hereditary succession, standing armies, taxation systems, and, in the Almohad case, a caliphal title. Historians differ over how much weight to place on the religious versus the political and military dimensions of each movement.

Interpretation A — Primarily genuine religious reform movements that acquired political power as a consequence: This interpretation emphasizes the seriousness and specificity of each movement's religious program — Almoravid insistence on rigorous Maliki legal orthodoxy, Almohad insistence on a philosophically grounded doctrine of divine unity — and argues that political and military success followed from, rather than caused, genuine religious conviction among both leaders and followers. On this view, the movements' subsequent adoption of imperial institutions reflects the practical requirements of governing large territories rather than evidence that the religious program was secondary all along.
Interpretation B — Primarily state-building projects that used religious reform as an effective mobilizing ideology: This interpretation emphasizes that both movements emerged from specific Amazigh tribal confederations with pre-existing military capacity and economic interests — Saharan trade for the Sanhaja, Atlas agricultural and pastoral resources for the Masmuda — and argues that religious reform doctrine functioned effectively to unify these confederations, legitimate their leaders' authority, and justify military campaigns against rival Muslim rulers in ways that a purely tribal or dynastic appeal could not have achieved as effectively.

Evidence: Both interpretations draw on the same body of evidence — chronicle accounts of each movement's founding and religious teaching, surviving legal and theological texts associated with each movement, numismatic evidence recording official religious and political titles, and the archaeological and architectural record of each empire's capitals — but weigh the sincerity and causal priority of religious motivation differently relative to tribal, economic, and military factors.

Why it matters: This textbook does not adopt either interpretation to the exclusion of the other, since the more persuasive scholarly position generally treats the two dimensions as genuinely intertwined rather than separable: religious reform doctrine provided both movements with an organizing ideology capable of transcending narrow tribal loyalty, while pre-existing tribal military and economic capacity provided the practical means by which that ideology could be translated into conquest and governance. Treating either dimension as simply a mask for the other risks flattening a historically complex phenomenon.

Student task: Using the evidence and considerations described above, explain why it may be more historically accurate to describe the Almoravid and Almohad movements as combining sincere religious reform with effective state-building, rather than forcing a choice between the two interpretations.

Multiple Perspectives

Living Under Almoravid and Almohad Rule

Note: the viewpoints below are reconstructed analytical perspectives synthesizing patterns historians have identified across many sources. They are not quotations from any single named historical actor, and the groups described did not possess equal power or equal freedom of action.

From the perspective of a Sanhaja or Masmuda tribal fighter serving in the imperial military: Loyalty to the movement's religious leadership and, later, to its ruling dynasty offers a path to status, land, and plunder unavailable within the narrower horizons of tribal life alone, but that loyalty also means distant campaigns, in Iberia or across the Maghreb, far from home pasture and kin.
From the perspective of a Maliki legal scholar in Fez or Marrakesh: The new rulers' claim to religious legitimacy depends heavily on scholarly endorsement, giving jurists real influence over law and administration, though a scholar critical of a ruling dynasty's specific doctrine — as many Maliki scholars eventually were of aspects of Almohad theology — risks serious consequences.
From the perspective of an Andalusi urban notable in Seville after Almoravid or Almohad annexation: Rule by an Amazigh dynasty based in Marrakesh offers protection against Christian conquest but also means answering to administrators and soldiers from across the strait, whose language, customs, and priorities differ in some respects from the courtly culture of earlier Umayyad and taifa Córdoba.
From the perspective of a merchant engaged in trans-Saharan trade through Sijilmasa: Political stability in the Maghreb under a single dominant power simplifies the logistics and safety of long caravan journeys carrying gold, salt, and other goods, making imperial consolidation, whatever its costs to conquered rivals, generally good for business along the routes it secures.
Continuity and Change Over Time

Amazigh Political Power over the Long Term

What Changed

  • The Maghreb moved from a patchwork of small, often short-lived Amazigh and Arab-led polities to two successive transregional empires spanning the Sahara's edge to central Iberia
  • Marrakesh emerged, within a single generation, from an unsettled plain to the political and religious capital of the western Islamic world
  • Religious authority shifted from Kharijite and Shiʿi currents toward Sunni dominance; after the distinctive Almohad religious project itself weakened in the thirteenth century, Maliki Sunni legal institutions reasserted broad dominance across much of the Maghreb
  • The direction of political and military influence across the Strait of Gibraltar shifted decisively from Iberia projecting power south to the Maghreb projecting power north

What Stayed the Same

  • Amazigh tribal confederations remained the basic organizing unit of military and, often, regional political power throughout the period
  • Trans-Saharan trade in gold, salt, and enslaved people continued to shape Maghrebi urban wealth and political geography across successive dynasties
  • Fez retained its importance as a religious and intellectual center across multiple changes of ruling dynasty
  • Religious reform movements repeatedly proved an effective vehicle for supra-tribal political mobilization

Why the pattern matters: Recognizing both change and continuity helps students see that the rise of successive transregional empires did not erase the underlying tribal, religious, and commercial structures of Maghrebi society; rather, each empire represented a particular, temporary, and ultimately impermanent way of organizing those enduring structures.

Cause and Effect

From Religious Movement to Empire

Long-term causes

Weak and geographically distant Abbasid and Umayyad Andalusi authority left political space open across much of the Maghreb; enduring Amazigh tribal confederations provided a ready-made basis for large-scale military mobilization once unified around a common cause.

Short-term causes

A specific religious reformer's teaching — ʿAbd Allah ibn Yasin's or Ibn Tumart's — provided a unifying ideology capable of transcending narrower tribal loyalty, while existing political fragmentation, whether among Saharan and Moroccan rulers or among the Almoravids themselves, created openings for conquest.

Effect

A religious community organized around a reformer's teaching converted its internal discipline and tribal military support into sustained territorial conquest, culminating in the founding of an imperial capital (Marrakesh) and, eventually, direct rule over both the Maghreb and much of al-Andalus.

Historical complexity

Neither movement's success should be read as inevitable. Both depended on contingent military victories, the specific political weakness of rivals (taifa fragmentation for the Almoravids, Almoravid religious and political weakening for the Almohads), and leadership transitions — from Ibn Yasin to Yusuf ibn Tashfin, from Ibn Tumart to ʿAbd al-Muʾmin — that could easily have gone differently.

Historical complexity: Historians continue to debate how much weight to give religious conviction, tribal military capacity, and control over trans-Saharan or Andalusi resources in explaining each movement's success, a debate examined further in this chapter's Historical Debate feature.

Everyday Life and Social History

Ordinary Life in an Imperial Maghreb

For most residents of the Almoravid and Almohad empires, daily life continued to be organized around the same environmental adaptations examined in Chapter 3 and Chapter 12: oasis and terrace agriculture in the far Maghreb's fertile valleys, pastoral mobility across the steppe and Saharan margins, and craft production and commerce in growing urban centers such as Fez and Marrakesh. Imperial rule brought new tax obligations, periodic military conscription or recruitment from tribal populations, and, in cities, the presence of an expanding administrative and scholarly class supported by state patronage, but it did not fundamentally transform the rhythms of agricultural and pastoral life for most of the population.

Urban craftsmen, merchants, and religious scholars experienced imperial rule rather differently than rural pastoralists and farmers, benefiting from growing markets, religious endowments supporting mosques and scholarship, and the demand for luxury goods, textiles, and building materials that an imperial court and its associated elite generated. Women's roles across Maghrebi society in this period varied by region, class, and specific community, ranging from active participation in trade and craft production in some urban and rural contexts to more restricted domestic roles shaped by elite religious and legal norms in others; surviving evidence, drawn primarily from legal texts, chronicles, and later ethnographic comparison, offers only a partial and unevenly distributed window into these varied experiences, and historians continue to work to reconstruct them more fully through archaeology and material culture alongside textual sources.

Chapter Summary

This chapter has examined how the medieval Maghreb developed powerful and distinctive political traditions during the centuries following the Arab-Islamic conquests, traditions that owed relatively little to direct control from Baghdad, Damascus, or, for the most part, Cairo. Effective Abbasid authority extended only weakly and briefly into the far Maghreb, creating political space in which local dynasties and, eventually, transregional Amazigh-led empires could emerge and flourish.

The chapter traced this development through several successive phases: early Kharijite-influenced polities including the Rustamid imamate of Tahert; the Alid-legitimated Idrisid dynasty that founded and developed Fez in the far Maghreb; the nominally Abbasid but effectively autonomous Aghlabid dynasty that governed a prosperous Ifriqiya from Kairouan and extended Muslim rule to Sicily; and, most consequentially, the Almoravid and Almohad empires, which transformed religious reform movements rooted respectively among the Sanhaja and Masmuda Amazigh confederations into transregional empires governing, at their height, the entire Maghreb and much of al-Andalus.

Students have examined how the Almoravid movement, beginning with ʿAbd Allah ibn Yasin's preaching among the Sanhaja of the western Sahara, grew into an empire centered on the newly founded capital of Marrakesh and extended its authority across the Strait of Gibraltar following the 1086 battle of al-Zallaqa, eventually annexing most of the fragmented taifa kingdoms of al-Andalus. The chapter then traced how the rival Almohad movement, originating in Ibn Tumart's rigorous theological reform teaching among the Masmuda of the High Atlas, overthrew Almoravid rule under ʿAbd al-Muʾmin's leadership and built an even larger empire spanning the western Islamic world at its height in the later twelfth century.

The chapter placed particular emphasis on the Maghreb's connections beyond its own borders: northward across the Strait of Gibraltar into al-Andalus, where Maghrebi intervention repeatedly reversed the direction of political influence that earlier centuries' history might suggest; and southward across the Sahara, where trade in gold, salt, and enslaved people linked Maghrebi cities to West African trading networks and shaped the economic and demographic foundations on which Maghrebi states, particularly the Almoravids, depended.

The Historical Debate feature examined the genuine scholarly disagreement over how to weigh religious conviction against tribal military and economic factors in explaining the Almoravid and Almohad movements' rise, concluding that the more persuasive position treats the two dimensions as thoroughly intertwined rather than separable. The chapter also emphasized, through its discussion of the empires' limits, that neither the Almoravid nor Almohad state achieved the kind of centralized, uniform administration a modern reader might assume from the term "empire," and that both ultimately proved vulnerable to the same cyclical pattern of tribal and religious challenge that had first brought them to power.

Finally, the chapter directly addressed this textbook's foundational commitment to keeping Amazigh political and religious agency visible within the broader history of the Arab world, while insisting on real precision about which dynasties were which. The Idrisids were an Arab, specifically Alid, ruling house dependent from the outset on Awraba Amazigh backing; the Aghlabids were an Arab governing family ruling a predominantly local North African society with large Amazigh populations and a mixed military and administrative establishment; and the Almoravids and Almohads, by contrast, were themselves Amazigh dynasties — the former led from the top by Sanhaja chiefs, the latter arising among the Masmuda under Ibn Tumart before its ruling dynasty passed to the Zanata leadership of ʿAbd al-Muʾmin. All four operated within, contributed to, and helped extend an increasingly Arabic-speaking and Islamic cultural and political world regardless of their ruling family's own origin. This history illustrates concretely why Arabization, Islamization, and a dynasty's own ethnic origin, as distinguished in Chapter 24 and in Section 32.17, must be treated as three separate variables rather than a single undifferentiated story of "Arab conquest."

These developments matter directly for the chapters that follow. Chapter 33 turns eastward to examine how Seljuk Turkish military power transformed the relationship between the Abbasid caliphate and effective political authority in Iraq and Syria during roughly the same centuries examined in this chapter, completing Part VI's portrait of a genuinely multipolar medieval Islamic world. Chapter 34 examines the Crusades within this already multipolar political landscape, and Chapter 39 returns to the Maghreb to examine the Marinid, Hafsid, and Zayyanid successor states that emerged after Almohad rule collapsed in the thirteenth century.

Review Materials

Key Terms

Maghreb
The region of North Africa west of Egypt, encompassing modern Libya, Tunisia, Algeria, and Morocco, along with the western Sahara.
Ifriqiya
The fertile coastal and interior region roughly corresponding to modern Tunisia, historically the Maghreb's wealthiest and most urbanized sub-region.
Central Maghreb
The region roughly corresponding to modern Algeria, home to the Rustamid Ibadi imamate and later Almoravid and Almohad territory.
Far Maghreb
The region roughly corresponding to modern Morocco, home to the Idrisid, Almoravid, and Almohad dynasties.
Amazigh
The indigenous peoples of North Africa and their related languages, sometimes labeled "Berber" in older scholarship, a term many Amazigh communities reject.
Sanhaja
Amazigh tribal confederation of the western Sahara from which the Almoravid movement emerged.
Masmuda
Amazigh tribal confederation of the High Atlas mountains from which the Almohad movement emerged.
Kharijite
An early Islamic political-religious current, originating in disputes over leadership after the First Fitna, emphasizing piety and merit over lineage as the basis for legitimate authority.
Ibadi
A moderate branch of Kharijite Islam that established the Rustamid imamate at Tahert and survives today as a minority tradition in parts of the Maghreb.
Almoravid (al-Murabitun)
A Sanhaja-led religious and political movement, and the empire it built across Morocco and al-Andalus, named for the ribat associated with its founding.
Almohad (al-Muwahhidun)
A Masmuda-led religious and political movement, and the empire it built across the Maghreb and al-Andalus, emphasizing rigorous doctrine of divine unity.
Mahdi
A divinely guided figure expected in various strands of Islamic thought to restore true religion; a title claimed by Ibn Tumart.
Tawhid
The Islamic theological doctrine of God's absolute oneness, central to Almohad reform ideology.
Bayʿa
A formal oath of allegiance sworn to a ruler or claimant to religious-political leadership.
Ribat
A fortified religious retreat or frontier outpost, associated with the origins of the Almoravid movement's name.
Taifa
One of the numerous small successor kingdoms into which Umayyad Andalusi authority fragmented after 1031 CE.
Maliki school
The school of Sunni Islamic law historically dominant across the Maghreb and al-Andalus.
Trans-Saharan trade
The long-distance caravan trade connecting the Maghreb to West Africa, carrying gold, salt, and enslaved people, among other goods.
Idrisid dynasty
An Alid-legitimated dynasty founded in the far Maghreb in 789 CE, credited with developing Fez.
Aghlabid dynasty
A nominally Abbasid but effectively autonomous dynasty that governed Ifriqiya from Kairouan beginning in 800 CE.
Alid legitimacy
Political legitimacy claimed through descent from the Prophet Muhammad's family via his cousin and son-in-law Ali.
Numismatics
The study of coins, used by historians to verify official titles, dates, and religious claims independent of later chronicle tradition.
Sijilmasa
A key Saharan trade town in the far Maghreb linking Mediterranean and trans-Saharan commercial networks.
Confederation
An alliance of related or allied kinship groups capable of collective military and political action while retaining internal distinctions of lineage and leadership.
Al-Zallaqa (Sagrajas)
The 1086 CE battle in which Yusuf ibn Tashfin defeated Alfonso VI of León-Castile, beginning sustained Almoravid intervention in al-Andalus.

Major People, Groups, and Places

Identification & Significance

Idris I and Idris II
Founders of the Idrisid dynasty; Idris II traditionally credited with developing Fez, discussed in Section 32.4.
Ibrahim ibn al-Aghlab
Founder of the Aghlabid dynasty of Ifriqiya, granted hereditary governorship by the Abbasid caliph in 800 CE, discussed in Section 32.5.
ʿAbd Allah ibn Yasin
Religious reformer whose preaching among the Sanhaja Amazigh initiated the Almoravid movement, discussed in Section 32.9.
Yusuf ibn Tashfin
Almoravid leader who founded Marrakesh and won the battle of al-Zallaqa, discussed in Sections 32.10–32.11.
Ibn Tumart
Masmuda religious reformer who proclaimed himself Mahdi and founded the Almohad movement, discussed in Section 32.12.
ʿAbd al-Muʾmin
Kumiya Zanata Amazigh successor to Ibn Tumart who transformed the Almohad movement into a transregional empire, discussed in Section 32.13.
Marrakesh
Imperial capital founded by the Almoravids c. 1062 CE and later held by the Almohads, discussed in Sections 32.10 and 32.13.
Fez
Major religious and intellectual center of the far Maghreb, developed under the Idrisids, discussed in Section 32.4.
Kairouan
Aghlabid capital and major center of Maliki scholarship in Ifriqiya, discussed in Section 32.5.
Tahert
Center of the Rustamid Ibadi imamate in the central Maghreb, discussed in Section 32.6.
Seville
Principal Almohad capital in al-Andalus, home to the Kutubiyya-related Giralda minaret, discussed in Section 32.14.
Sanhaja and Masmuda confederations
Amazigh tribal groupings underlying the Almoravid and Almohad movements respectively, discussed throughout the chapter.
al-Bakri
Andalusi geographer whose writing provides valuable descriptive evidence of Maghrebi towns and trade, discussed in the Primary Source Window.

Chronology Check

  1. Place the following in chronological order: founding of Marrakesh; Ibn Tumart's proclamation as Mahdi; the battle of al-Zallaqa; the Aghlabid grant of hereditary governorship; the Almohad capture of Marrakesh; the founding of the Idrisid dynasty.
  2. Which of the events above depend primarily on later chronicle tradition, and which are better documented through contemporary or near-contemporary evidence such as coinage?
  3. Explain the significance of the roughly sixty-year gap between the founding of Marrakesh and the beginning of the Almohad movement.
  4. Identify one long-term cause and one short-term cause that helped bring the Almoravids into al-Andalus in 1086.
  5. Why does the fall of Marrakesh to the Marinids in 1269 mark a meaningful endpoint for this chapter's narrative?
  6. Why is it historically inaccurate to describe the Almoravid and Almohad empires as static or unchanging across the twelfth and thirteenth centuries?

Geography Study Questions

  1. Using a map, compare the geographic relationship of Ifriqiya, the central Maghreb, and the far Maghreb to one another and to Baghdad.
  2. Why might Marrakesh's location have made it a more practical Almoravid capital than an existing city such as Fez or Kairouan?
  3. How did the Strait of Gibraltar's narrowness shape the political relationship between the Maghreb and al-Andalus?
  4. What does the location of Sijilmasa suggest about its role in trans-Saharan trade?
  5. Why would an empire spanning from the Sahara's edge to central Iberia face significant logistical challenges in governance?

Primary Source Questions

  1. What specific details does al-Bakri provide about Sijilmasa's fortifications, agriculture, and commercial role?
  2. Why should students read al-Bakri's claims about the volume of gold passing through Sijilmasa with particular caution?
  3. What does this passage suggest about the relationship between Sijilmasa's environment and its role in trans-Saharan trade?
  4. What kinds of additional evidence might help historians verify or challenge al-Bakri's description of Sijilmasa?

Review Questions

  1. Why was effective Abbasid political control over the far Maghreb so limited after the early conquests?
  2. What distinguishes Ifriqiya, the central Maghreb, and the far Maghreb as historical sub-regions?
  3. How did the Idrisid dynasty claim political legitimacy, and what city is most associated with its development?
  4. What was the relationship between the Aghlabid dynasty and the Abbasid caliphate?
  5. What role did Kharijite and Ibadi currents play in the medieval Maghreb's religious and political life?
  6. How did the Almoravid movement originate, and among which Amazigh confederation?
  7. What was the significance of the battle of al-Zallaqa in 1086?
  8. How did the Almohad movement originate, and what theological claims did it make?
  9. What role did trans-Saharan trade play in shaping Maghrebi political and economic history?
  10. Why should the Almoravid and Almohad empires not be understood as centralized, uniformly administered states?
  11. How does the history examined in this chapter support the distinction between Arabization and Islamization introduced in Chapter 24?
  12. What connects the Idrisid, Almoravid, and Almohad states as a recurring historical pattern?
  13. Why does this chapter caution against projecting the modern states of Morocco, Algeria, Tunisia, and Libya backward onto the medieval Maghreb?
  14. How did the relationship between the Maghreb and al-Andalus change over the course of this chapter's narrative?

Short Answer Questions

  1. A student argues that the medieval Maghreb was simply a distant province of Arab-ruled empires based in Baghdad or Damascus. Using concepts from this chapter, explain why this claim is historically inaccurate.
  2. Compare the Idrisid and Aghlabid dynasties as forms of political authority operating within, but substantially independent from, distant caliphal control.
  3. Explain how a religious reform movement, such as the Almoravid or Almohad movement, could transform into a large territorial empire, using specific evidence from the chapter.
  4. Some accounts describe Almohad rule as simply a more radical version of Almoravid rule. Using concepts from the Historical Debate feature, evaluate the strengths and limitations of this claim.
  5. A student finds an account describing Amazigh peoples as having simply become "Arabs" once they adopted Islam. Using concepts from this chapter and Chapter 24, explain why this description is historically misleading.

Discussion Questions

  1. This chapter argues that religious reform movements repeatedly became vehicles for political transformation in the medieval Maghreb. Why might this pattern have recurred so often in this particular region?
  2. How does recognizing Amazigh political and religious leadership change the kinds of questions historians ask about the medieval Islamic world?
  3. Why might it matter that the direction of political influence across the Strait of Gibraltar shifted from Iberia projecting power southward to the Maghreb projecting power northward?
  4. In what ways does the trans-Saharan trade discussed in this chapter complicate a narrative that treats the Mediterranean as the Maghreb's only significant external connection?
  5. Why might older historical scholarship have underemphasized Amazigh political agency in favor of a narrative centered on Arab or Islamic history generally?
  6. What continuities do you see between the tribal confederations described in this chapter and the negotiated relationships between imperial authorities and tribal groups examined in later Ottoman-era chapters?

Writing Exercises

  • Exercise 1 (Explanatory): Explain how the Almoravid movement developed from a religious reform community among the Sanhaja Amazigh into an empire spanning Morocco and much of al-Andalus.
  • Exercise 2 (Comparative): Compare the Idrisid dynasty and the Almohad empire as two different forms of Maghrebi political authority — an Arab/Alid house resting on Amazigh backing versus a dynasty of Amazigh leadership in its own right — addressing their differing scale, institutions, and relationship to caliphal legitimacy.
  • Exercise 3 (Historical argument using evidence): Using the Historical Debate feature on religious reform versus state-building, write an essay arguing for the interpretation you find more persuasive, or explaining why the two dimensions should be treated as intertwined.
  • Exercise 4 (Connecting past and present — research assignment): Choose one theme introduced in this chapter (Amazigh identity, trans-Saharan trade, or Maghreb–Andalusi connections), and, using later chapters as they become relevant, trace how it persisted, adapted, or changed across at least two later historical periods.
  • Exercise 5 (Causation): Explain what conditions allowed the Almoravid and Almohad movements to convert religious reform teaching into large-scale territorial conquest, and why reducing their success to a single cause would be historically insufficient.

Research or Library Extension

MGU Library Research Project

Investigating a Maghrebi Dynasty, City, or Trade Network

This project asks you to investigate one dynasty, city, or trade network discussed in this chapter in greater depth, using library and reference resources to trace its historical development and significance.

  1. Choose a subject. Select a dynasty (such as the Idrisids, Aghlabids, Almoravids, or Almohads), a city (such as Fez, Kairouan, Marrakesh, or Seville under Almohad rule), or a trade network (such as trans-Saharan gold and salt trade) introduced in this chapter.
  2. Research its origins and development. Using library resources, encyclopedias, and reliable academic sources, describe how your chosen subject developed and reached its historical significance.
  3. Research its broader connections. Identify at least three distinct ways your chosen subject connected the Maghreb to other regions, including al-Andalus, the Sahara, or the wider Mediterranean.
  4. Analyze its political and social significance. Explain how your chosen subject shaped political authority, religious life, trade, or social relationships in the Maghreb.
  5. Write your findings. In a 3–5 page essay (or equivalent multimedia presentation), explain your chosen subject's development and significance, using careful, evidence-based language and noting where scholarly understanding remains incomplete or debated.

Library resources to use: Reference works on medieval North African and Andalusi history, academic encyclopedias, numismatic catalogues, archaeological survey reports, and the MGU History Library's reference materials on the medieval western Islamic world (see also Appendix A, Glossary of Regional and Historical Terminology).

Chapter Reflection

This chapter has examined a region and a set of historical actors that a Baghdad- or Cairo-centered narrative of Islamic history can too easily push to the margins. The medieval Maghreb generated political and religious traditions of genuine historical weight through more than one kind of leadership: the Idrisid foundation of Fez by an Arab/Alid house resting on Awraba Amazigh backing, the Aghlabid prosperity of Kairouan and Sicily under an Arab governing family ruling a predominantly local North African society with large Amazigh populations and a mixed military and administrative establishment, and, most dramatically, the Almoravid and Almohad empires — the former led from the top by Sanhaja Amazigh chiefs, the latter arising among the Masmuda under Ibn Tumart before passing to the Zanata Amazigh leadership of ʿAbd al-Muʾmin — that briefly made Marrakesh one of the most powerful capitals in the medieval Islamic and Mediterranean world.

The chapter has also modeled an important corrective that runs throughout this textbook's larger argument: the recognition that Arabization and Islamization were separate historical processes, and that peoples who adopted Islam and, over time, increasingly used Arabic as an administrative and scholarly language did not thereby become simply "Arab" in any straightforward sense. Carrying this corrective forward matters directly when later chapters examine the Marinid, Hafsid, and Zayyanid successor states of Chapter 39, the Ottoman-era Maghreb of Part VIII, and the long, uneven processes of linguistic and cultural change examined in Chapters 52 and 60 that eventually produced the more fully Arabized Maghreb of the modern period.

Students who understand the distinction between Ifriqiya, the central Maghreb, and the far Maghreb, the recurring pattern by which religious reform movements became imperial states, and the genuine historical agency of Amazigh peoples in building some of the medieval Islamic world's most powerful polities are well equipped to read the increasingly multipolar history of the medieval Islamic world that the remaining chapters of Part VI will continue to develop.

The story this chapter has told is, in an important sense, a story about the limits of any single center's authority. Baghdad's writ never reliably extended across the Sahara's edge; Córdoba's power, once dominant in Iberia, was eventually eclipsed by armies raised in the Moroccan Sahara and the High Atlas. The medieval Islamic world, as this chapter and the chapter before it together demonstrate, was never a single empire radiating outward from one capital, but a shifting constellation of rival and overlapping centers of power, each with its own history, its own peoples, and its own claim to historical significance.