Skip to main content
🌍Realms19 min read

Almoravid Dynasty

A Sanhaja Berber reform movement from the Sahara that forged the first great Berber-led empire of the western Mediterranean, ruling from the Senegal River to Zaragoza (1050s–1147 CE).

Almoravid Dynasty

The Almoravids (Arabic al-Murābiṭūn, “those who are bound to the ribat”) began as a puritanical reformist band of veiled Saharan nomads and ended as the rulers of a million-square-kilometre empire stretching from the banks of the Senegal River to the gates of Zaragoza. In barely a century they unified Morocco, western Algeria, the Saharan trade routes and — for the first time in history — all of Muslim Spain under a single Berber dynasty. Their rigorist Maliki Islam extinguished the heresy of the Barghawata, checked the advance of the Castilian kings, and funded a building programme that gave the western Islamic world some of its enduring monuments. They never claimed the caliphate; they acknowledged the Abbasids of Baghdad and styled themselves amīr al-muslimīn, “Commander of the Muslims.”


Quick Facts

AttributeValue
TypeSanhaja Berber empire and dynasty
Period1050s–1147 CE
Extentc. 1,000,000 km² (est. 1120)
CapitalAzuggi → Aghmat (1058–c.1070) → Marrakesh (c.1070–1147)
Founding tribesLamtuna, Gudala and Massufa (Sanhaja confederation)
Spiritual founderAbdallah ibn Yasin (d. 1058/1059)
Greatest rulerYusuf ibn Tashfin (r. 1061–1106)
Official faithSunni Islam, Maliki school
Official languageArabic (Berber and Mozarabic widely spoken)
TitleAmīr al-muslimīn — nominal vassal of the Abbasid caliphate
CurrencyAlmoravid gold dinar (ancestor of the Spanish maravedí)
Overthrown byThe Almohads, 1147

The Name

Three explanations compete for the origin of the name, and all of them matter:

ExplanationSource
The ribat — Ibn Yasin, meeting resistance among the Gudala, took followers to raise a makeshift ribat on an offshore island (possibly Tidra, in the Bay of Arguin)Ibn Abi Zar (13th c.)
The school — the name came from Waggag ibn Zallu’s Dar al-Murabitin (“House of the Almoravids”), the ribat in the Sous where Ibn Yasin trainedQadi Ayyad, Ibn al-Zayyat al-Tadili
Morale — Ibn Yasin coined it after a bloody battle in the Draa valley c.1054, in the sense of “persevering in the fight”Ibn ‘Idhari (14th c.)

Al-Bakri, writing in 1068 before their apex, already calls them al-Murabitun without explaining why. Whatever the truth, the name was self-chosen — partly, it seems, to forestall any tribal or ethnic identification. Europeans rendered it as almorávide; Arabic sources also called them al-mulathamun, “the veiled ones”, from the litham their riders wore against sand and strangers.


Origins

The Sahara Before the Empire

The Almoravids trace to several Saharan Sanhaja nomadic tribes moving between the Senegal River in the south and the Draa in the north. The founding tribe was the Lamtuna, centred on Awdaghust (Aoudaghost), the citadel that controlled the trans-Saharan caravan route. Under their king Tinbarutan ibn Usfayshar the Lamtuna had captured or built Awdaghust; after the Sanhaja union collapsed, the city passed to the Ghana Empire and the northern routes to the Zenata Maghrawa of Sijilmasa — who also drove the Gazzula and Lamta out of their pastures in the Sous and Draa valleys.

Around 1035 the chieftain Tarsina tried to reunite the desert tribes; his reign lasted under three years.

A Teacher for the Tribes

Around 1040, Yahya ibn Ibrahim, a Gudala chieftain and brother-in-law of the dead Tarsina, returned from the pilgrimage to Mecca and stopped at Kairouan. There he met Abu Imran al-Fasi, a Maliki jurist of Fez, and confessed the neglect of Islamic learning among his southern Sanhaja people. On al-Fasi’s recommendation Yahya went to the ribat of Waggag ibn Zallu in the Sous, and Waggag released to him one of his residents: Abdallah ibn Yasin.

Ibn Yasin was a Gazzula Berber, probably a convert rather than a born Muslim — his name has been read as “son of Ya-Sin”, the 36th sura, as if he had erased a family past and been reborn of the Book. Al-Bakri alleges his learning was shallow; what is certain is his rigour. He answered disputed arguments with charges of apostasy and punished the slightest deviation. The Gudala expelled him soon after Yahya ibn Ibrahim’s death in the 1040s.

The Lamtuna received him instead. Their chieftain Yahya ibn Umar al-Lamtuni and his brother Abu Bakr ibn Umar kept him on a careful leash, while Ibn Yasin supplied the doctrine: conquest as a necessary addendum to Islamicization, tribalism as the obstacle to be destroyed, equality of all Muslims under the Sacred Law. For the Lamtuna leadership, whose ambition was to refound the Sanhaja union and recover lost dominion, the two programs dovetailed perfectly.

By the early 1050s a triumvirate led the movement — Abdallah ibn Yasin, Yahya ibn Umar and Abu Bakr ibn Umar — and the movement, now dominated by the Lamtuna, called itself al-Murabitun.

The Two Cities

The first campaign targeted the two poles of the trans-Saharan trade: Sijilmasa in the north (Zenata Maghrawa) and Awdaghust in the south (Soninke). Both fell in 1054 or 1055. Mas’ud ibn Wannudin, Sijilmasa’s ruler, was killed with other Maghrawa leaders; the army, reported to number 30,000 camel riders, may have been exaggerated. Awdaghust was pillaged and its Muslim population treated harshly on the grounds that they recognized the pagan king of Ghana.

Sijilmasa rebelled as soon as the army left and slaughtered the Lamtuna garrison. The Gudala refused to join the second expedition and went home to the Atlantic desert. Ibn Yasin pressed north regardless.


History

The March North

  • 1056 — By this year Taroudant and the Sous valley were conquered and Maliki law imposed; the army retired to Sijilmasa as its base, and Abu Bakr appointed his cousin Yusuf ibn Tashfin to command the garrison there.
  • 1055/1056 — Yahya ibn Umar al-Lamtuni was killed fighting the Gudala (some sources give 1057). The first capital was the fortress of Azuggi (Azougui), on Jabal Lamtuna about 10 km northwest of modern Atar, in the heartland of the tribe.
  • 1058 — Crossing the High Atlas, the Almoravids took Aghmat, a prosperous commercial town, and made it the capital.
  • 1058/1059 — They met the Barghawata confederation of the Atlantic coast. The campaign was bloody: Abdallah ibn Yasin was killed at Kurīfalalt (Kurifala). The spiritual founder’s death did not stop the war — by 1060 Abu Bakr ibn Umar had conquered the confederation and forced it to orthodox Islam. See Almoravid Conquest.
  • c. 1060 — Abu Bakr reached as far as Meknes.

Zaynab and the Two Empires

Towards 1068 Abu Bakr married Zaynab an-Nafzawiyyah, daughter of a wealthy Kairouani merchant settled in Aghmat and widow of Laqut ibn Yusuf al-Maghrawi, the last ruler of the city. When Abu Bakr left for the Sahara to suppress a Gudala revolt (in 1060 or 1071), Zaynab refused to follow; he granted her a divorce and, on his instructions, she married Yusuf ibn Tashfin — who, on the advice of her counsel, refused to hand back the north.

The two men met on neutral ground between Aghmat and Marrakesh and divided the realm amicably: Yusuf in the Maghreb, Abu Bakr in the Sahara. Abu Bakr kept the supreme title and Yusuf kept minting coins in his name until Abu Bakr was killed by an arrow wound at Tagant in November 1087. The dynasty would spend the next generation and more managing that double inheritance.

Marrakesh

Abu Bakr founded the new capital soon after — the sources give 1062 (Ibn Abi Zar, Ibn Khaldun), 1078 (al-Idrisi), or 1070 (Ibn ‘Idhari), the last being the date most modern historians prefer. The city began as the Ksar el-Hajjar, the “Fortress of Stone”, built by its founder to house the treasury.


Expansion

The Maghreb

YearAchievement
1069 / 18 Mar 1070 / 1074–75Fez taken (sources disagree)
1070–1075Ibrahim ibn Abu Bakr rules Sijilmasa for his father
1076Ibrahim’s challenge to Yusuf defused by Mazdali ibn Tilankan
1079Banu Ya’la defeated near the Moulaya valley (20,000 men under Mazdali)
1081Oujda and Tlemcen taken; the Maghrawa leader al-Abbas killed
1082Algiers captured — the easternmost outpost
1083 / 1084Ceuta, the last Zenata hold on the Strait, falls after a land siege and a Sevillian naval blockade
1104Peace treaty with the Hammadids fixes the eastern frontier

At Tlemcen Yusuf founded a new town, Takrart, beside the older Agadir; the two merged under the Almohads into the present city.

Al-Andalus: Invitation and Annexation

The Taifa kingdoms, paying tribute (parias) to the Christian kings, finally broke: Alfonso VI reached Tarifa in 1083 and took Toledo in May 1085. Al-Mu’tamid of Seville convened al-Mutawwakil of Badajoz and Abdallah ibn Buluggin of Granada and sent an embassy to Ibn Tashfin — knowing exactly what it risked. Al-Mu’tamid is said to have remarked: “Better to pasture camels than to be a swineherd.”

The price was Algeciras, surrendered to Yusuf in July 1086; 500 advance troops crossed first, then some 12,000 men. On 23 October 1086 Alfonso VI was routed at Sagrajas (Zallaqa), north of Badajoz. Yusuf did not pursue — he returned to Africa, unwilling to be long away from his base.

YearEvent
1088Siege of Aledo fails through Taifa disunity
1090Granada surrenders; Abdallah ibn Buluggin exiled to Aghmat
1091Córdoba taken; Seville surrenders (September) — al-Mu’tamid exiled to Aghmat; Almería falls
1091/92Murcia seized
1094Badajoz annexed; Valencia remains contested — El Cid takes the city 15 June 1094 after a 20-month siege
1097Battle of Consuegra — Alfonso VI wins; El Cid’s son Diego killed
1102Christians evacuate Valencia (April–May); Almoravids occupy it
1110Zaragoza taken — the last independent taifa disappears

By Yusuf’s death in 1106 the Almoravids held all of al-Andalus except Zaragoza — but they had not recovered a single metre of land lost to the Christians in the previous century. The Maliki fuqaha of Spain, who had blessed the Almoravid jihad and denounced the taifa kings as impious, were the movement’s best propaganda.

The Southern Wing and the Ghana Debate

Abu Bakr made Azuggi the capital of the southern Almoravids. Arab tradition holds that they conquered the Ghana Empire of the Soninke around 1076–77 — Ibn Khaldun, citing the faqih Shaykh Uthman (1394), records tribute wrung from the Sudan until the rulers of Ghana dwindled away and were absorbed by the Sosso.

Modern Africanists largely reject a military conquest: Conrad, Fisher and Masonen argue the story is folklore built on misread Arabic sources, and Timothy Insoll notes that the archaeology of ancient Ghana shows no sign of the sudden destruction a conquest would leave. Dierke Lange allows political agitation without invasion — Almoravid influence spread by intermarriage with the nobility — while Sheryl Burkhalter counters that controlling West African gold so thoroughly implies real political power. Ibn Shihab al-Zuhri records that the Almoravids ended Ibadi Islam at Tadmekka in 1084 and that Abu Bakr “arrived at the mountain of gold”.


Rulers

Spiritual and tribal leaders (recognizing Abdallah ibn Yasin’s authority)

RulerDatesNote
Yahya ibn Ibrahim al-Jaddalid. 1040sGudala chieftain who fetched the teacher
Yahya ibn Umar al-Lamtunid. 1055/1056First military organizer; killed fighting the Gudala
Abu Bakr ibn Umard. 1087Founder of Marrakesh; supreme leader until his death

Dynastic rulers

#RulerReignKey events
1Yusuf ibn Tashfin1061–1106Fez, Tlemcen, Ceuta, Sagrajas, the taifas; took amīr al-muslimīn
—Ibrahim ibn Abu Bakr1070–1075Ruler of Sijilmasa; rival claim to the north
2Ali ibn Yusuf1106–1143Born in Ceuta, educated in Andalusi ways; Uclés 1108, Zaragoza 1110, Marrakesh walls c.1126
3Tashfin ibn Ali1143–1145Almohad revolt; died fleeing in March 1145
4Ibrahim ibn Tashfin1145Dethroned almost immediately
5Ishaq ibn Ali1145–1147Last Almoravid; killed at the fall of Marrakesh

State & Government

Under Yusuf ibn Tashfin the western Maghreb was divided into provinces for the first time — before that, largely tribal territory — with a developing central government at Marrakesh and key provinces entrusted to allies and relatives. The state was funded by Islamic taxes and by gold from the south, but in practice remained dependent on the spoils of each new conquest.

Yusuf acknowledged the Abbsaid caliphs of Baghdad as overlords — a symbolic act that enhanced his legitimacy enormously — and took the title amīr al-muslimīn. Ibn ‘Idhari dates this to 1073–74; Évariste Lévi-Provençal and Amira Bennison place it later, but certainly by the 1090s, when Abu Bakr ibn al-Arabi found Friday prayers already being given in the Abbasid caliph’s name across Yusuf’s territories. They never claimed the caliphate itself.

Personal security rested on a recruited guard: the ḥashm of 5,000 black soldiers (‘abid) and 500 white soldiers (uluj, probably of European origin).


Faith

The Almoravid state was an instrument of Maliki orthodoxy imposed on a heterodox Maghreb:

  • The Barghawata’s Berber Quran and syncretic practices were destroyed on conquest (1058–1060), and orthodox qadis appointed.
  • Maliki jurists were the dynasty’s staunchest allies, in Africa and in Spain alike, praising its jihad and condemning the taifa kings’ impiety.
  • The ribat — the frontier monastery-fortress of the r-b-ṭ root — was both institution and ideology: a life bound together in the cause of God.
  • Their most formidable theological opponent was Ibn Hazm of Córdoba, who attacked them in al-Fasl fi al-Milal wa al-Ahwa.

The leading jurists of the age served them: Ibn Rushd al-Jadd (grandfather of Averroes), chief Maliki jurist under Ali ibn Yusuf; Abu Bakr ibn al-Arabi, qadi of Seville; and Qadi Ayyad, author of Kitab al-Shifa.


Military

Organization

Abdallah ibn Yasin imposed punishing discipline for every breach of his laws. Yahya ibn Umar gave the movement its military form:

  • Infantry as the main arm — javelins in the front rank, pikes behind, formed into a phalanx
  • Camelmen and horsemen on the flanks
  • A flag bearer ahead whose flag, held upright, meant stand and lowered meant sit
  • Al-Bakri reports they did not pursue those who fled before them, did not retreat when outmatched, and preferred death to defeat — characteristics he found unusual in his own time

Their identity was Saharan: the litham veils that made them al-mulathamun to their enemies, and camel-borne mobility that let them cross terrain no Andalusian army could follow.

The Fleet

Yusuf learned his lesson failing to take Ceuta by land in 1078 and commissioned a fleet. From Ksar es-Seghir and Algeciras he could move armies across the Strait in a day; he personally crossed six times (1086, 1088, 1090–91, 1094, 1097, 1102). The Almoravids had access to some 18 major ports — from Tortosa and Dénia to Tangier, Ceuta, Oran and Algiers.

The admiralty followed the Cordoban pattern, seated at Almería and secondarily Seville, and was held for the whole period by the Banu Maymun clan of Dénia. Their eventual defection to the Almohads handed the new masters the arsenals of Seville and Almería — and with them the ability to take every remaining Almoravid port.

Campaigns ranged wide: 70 ships sent to the Levant in 1105/06 (all lost in a storm), the Atlantic raid on Galicia in 1120, reprisals against Italy with 25 ships in 1118, Calabria in 1122 (Nicotera taken with 17 ships), Patti and Syracuse in 1127, southern Italy again in 1137. The last decades were a slow maritime collapse: the Balearic expedition of 1113–1115 met rising Genoese and Pisan power, Minorca was assaulted in 1146, Almería was sacked by the Genoese in 1147, Lisbon fell to crusaders in 1147, and Oran was taken in 1148.


Society & Economy

  • Tribes: the core confederation of Lamtuna, Gudala and Massufa Sanhaja, with the Zenata generally hostile and the Masmuda submitted.
  • The desert route: Ceuta–Fez–Marrakesh–Aghmat–Sijilmasa–Tamdoult–Azougui–Awdaghust–Senegal, terminus of the gold trade.
  • Cities: Fez, Tlemcen, Aghmat, Marrakesh, Salé (grain out, Sevillian olive oil in), Saltes-Huelva (ironworking and naval metallurgy), Almería (over 800 tiraz workshops and the greatest industrial centre in al-Andalus).
  • Paper: 104 paper mills in Fez under Yusuf ibn Tashfin alone (al-Manuni).
  • Women: Zaynab an-Nafzawiyya, described by Ibn ‘Idhari as Yusuf’s most important political advisor, stands as the most visible figure — but her influence ran through a marriage that was also a state decision.

Architecture & Arts

The Almoravid period, with the Almohad that followed, is the formative stage of Moroccan and Moorish architecture. The Almoravids pulled back from the Andalusi drift towards heavy ornament, restoring balance between proportion and decoration, while importing eastern techniques — above all the muqarnas.

WorkDateSignificance
Ksar el-Hajjar, Marrakeshc.1070First fortress and treasury of the capital
Great Mosque of Algiersc.1097Early Almoravid mosque
Almoravid Qubba, Marrakesh12th c.One of the few surviving Almoravid monuments: carved stucco, complex arches, corner muqarnas cupolas
Al-Qarawiyyin, Fez (expansion)1135Central nave holds the earliest full muqarnas vaulting in the western Islamic world
Great Mosque of Tlemcen1136Ribbed dome before the mihrab — a twelve-pointed star of intersecting ribs, partly pierced to filter light
Walls of Marrakeshc.1126Rammed earth, built by Ali ibn Yusuf against the Almohad threat; Bab Doukkala best preserves the original bent-entrance plan
Riad garden, Marrakesh12th c.Earliest known Moroccan example of the four-part interior garden

Muslim, Christian and Jewish artisans from Iberia were brought to Africa after Sagrajas. Textiles, ceramics, calligraphy, manuscript illumination and carved minbars all flourished; the gold dinar minted at Seville in 1116 set the standard that became the Christian maravedí.


Literature & Learning

The political union of Morocco and al-Andalus accelerated cultural exchange — beginning when Yusuf exiled the poet-king al-Mu’tamid ibn Abbad first to Tangier and then to Aghmat, where he was buried in 1095.

  • al-Bakri — al-Masalik wa’l-Mamalik (Book of Roads and Kingdoms), the indispensable contemporary source
  • Ibn Hayyan, Ibn Bassam (Dhakhira), al-Fath ibn Khaqan (Qala’id al-Iqyan)
  • Qadi Ayyad — Kitab al-Shifa; Avempace (Ibn Bajja)
  • Poetry: the muwashshah, and the vernacular Andalusi zajal of Ibn Quzman
  • Several of the Seven Saints of Marrakesh were men of letters of this period

Decline

The Almohad rebellion begun by Ibn Tumart in the 1120s proved fatal. The movement’s mountain guerrilla severed the roads to Sijilmassa — the lifeline of trans-Saharan gold — and no Almoravid army could dislodge them from the passes.

YearEvent
1130First Almohad descent ends in the disaster of al-Buhayra before Marrakesh — but the Almoravid victory bought nothing
1143Ali ibn Yusuf dies; succeeded by Tashfin ibn Ali
1144The Zenata of western Algeria and elements of the Masufa defect to the Almohads; Tlemcen falls
March 1145Tashfin dies fleeing to Oran
1146Fez falls after a nine-month siege
1147Marrakesh falls after an eleven-month siege; Ishaq ibn Ali killed

The final years had also brought a maritime catastrophe — Almería, Tortosa, Lisbon, Oran and the whole Ifriqiyan coast lost within a few years. Muslim maritime power had never looked weaker.


Legacy

  • The first great Berber-led empire of the western Mediterranean, and the first to unite the Maghreb and al-Andalus politically.
  • Islamization of the Sahara and the urbanization of the western Maghreb.
  • An architectural vocabulary — muqarnas vaulting, ribbed domes, bent-entrance gates, the rammed-earth city wall — that the Almohads, Marinids and Saadians all inherited.
  • The gold dinar that became the Iberian maravedí, a coin name that outlived the dynasty by centuries.
  • A southern branch in the Sahara that persisted for generations after 1147; some oral traditions link its last offshoot to the legendary Ndiadiane Ndiaye, founder of the Jolof Empire.
  • In Iberian memory, the moros whose veils and discipline haunted the chronicles — and whose fall opened the way for the Almohads.

Realms

Events

Characters

Concepts

  • trace italienne / ribat — the frontier fortress that gave them their name
  • Maliki Islam — the juristic school they enforced
  • Sanhaja / Zenata / Masmuda — the Berber confederations of the Maghreb

Sources

  • al-Bakri, Kitab al-Masalik wa’l-Mamalik (Book of Roads and Kingdoms), 1068
  • Ibn Khaldun, Muqaddimah & History of the Berbers
  • Ibn ‘Idhari, al-Bayan al-Mughrib
  • Ibn Abi Zar, Rawd al-Qirtas
  • Norris, H. T., The Berbers in Arabic Literature; Chalmeta & Norris, “al-Murābitūn”, Encyclopaedia of Islam II
  • Bennison, Amira, The Almoravid and Almohad Empires (2016)
  • Messier, Ronald A., “Almoravids”, Encyclopaedia of Islam Three (2009)
  • Julien, Charles-André, Histoire de l’Afrique du Nord
  • Conrad, D. C. & Fisher, H. D., “The Conquest That Never Was: Ghana and the Almoravid Debate”; Insoll, T., Archaeology of Islam in Sub-Saharan Africa
  • Burkhalter, Sheryl, “Ghosts of Ghana and Almoravid Legacies”
  • Wikipedia, “Almoravid dynasty”