← Back to Realms
🌍 Realms 8 min read

Barghawata Confederacy

A Berber tribal confederation that established a unique religio-political entity along Morocco's Atlantic coast, ruling from 744 to 1058 CE.

Barghawata Confederacy

The Barghawata (also spelled Barghwata or Berghouata) were a Berber tribal confederation that established a unique religio-political entity along Morocco’s Atlantic coast, ruling from approximately 744 to 1058 CE—a remarkable 314-year run of independence. Emerging from the wreckage of the Great Berber Revolt against Umayyad authority, they created a distinctive syncretic faith that blended Islam with pre-Islamic Berber traditions, centered on the prophetic claims of Salih ibn Tarif and an 80-surah Berber-language Quran. Their story is one of indigenous resistance, religious innovation, and ultimate conquest by the Almoravids—a testament to Berber agency in shaping North African history.


Quick Facts

AttributeValue
TypeBerber Tribal Confederacy/Theocratic Kingdom
Period744–1058 CE
RegionAtlantic Morocco (Tamesna)
CapitalTamimut (Tamesna region)
Founder (Political)Tarif al-Matghari
Founder (Religious)Salih ibn Tarif
Tribes29 Masmuda tribes (12 adopted faith, 17 orthodox)
Duration314 years

The Great Mystery: Taqiyyah & Retroactive Prophecy

The Official Narrative

According to later Barghawata tradition, Salih ibn Tarif proclaimed himself prophet around 744 CE, received divine revelation in Tamazight, and authored an 80-surah Berber Quran. He promised to return during the reign of the 7th king, creating a messianic hope that sustained the confederation for centuries.

The Historical Reality

Modern scholarship increasingly accepts that:

  1. Salih likely never publicly claimed prophethood — he was probably a Sufri Kharijite
  2. The elaborate religious system was invented by his grandson Yunus in 842 CE
  3. The “return prophecy” was a political tool to legitimize Yunus’s rule
  4. Salih practiced taqiyyah — religious concealment for survival

The Narrative Layers

LayerStory
OfficialSalih was a prophet who received revelation in Tamazight; promised to return
Hidden TruthSalih never claimed prophethood; Yunus invented the entire system
MysterySalih’s disappearance — assassination? exile? natural death mythologized?

History

Origins & Foundation (744 CE)

The Barghawata emerged from the Great Berber Revolt of 739–743 CE, a widespread uprising against Umayyad Arab rule in the Maghreb. Drawing from Masmuda Berber tribes in the Tamesna region (between modern Safi and Rabat), they initially participated alongside Zenata-affiliated groups in challenging Umayyad authority.

Tarif al-Matghari led a strategic withdrawal from the failing revolt around 742–743, returning to Tamesna to consolidate power. In 744 CE, he founded the autonomous Barghawata political entity, uniting approximately 29 tribes in a confederation.

The Religious Innovation (744–842)

While Tarif established the political framework, his son Salih ibn Tarif transformed the confederation into a theocratic state. According to tradition, Salih claimed prophetic authority around 749 CE, declaring himself Mahdi and authoring a Berber-language Quran of 80 suras.

However, the taqiyyah interpretation suggests Salih never made these claims publicly—practicing religious concealment while sharing his beliefs only with an inner circle. His son Ilyas ibn Salih (r. 791–842) continued this policy, preserving the secret teachings.

The Public Revelation (842–888)

In 842 CE, Salih’s grandson Yunus ibn Ilyas dramatically reversed course, publicly revealing the Barghawata faith and claiming his grandfather had been a prophet. This transformation:

The Diplomatic Period (888–961)

Under Abu Ghufair (r. 888–913) and Abu al-Ansar Abdullah (r. 917–961), the Barghawata entered a period of stability and diplomatic engagement. Abu al-Ansar’s remarkable 44-year reign represented the peak of Barghawata power, with envoys sent to the Umayyad court of Córdoba in 963 CE.

Decline & Fall (961–1058)

The reign of Abu Mansur Isa (r. 961–983) marked the beginning of the end. He was killed in battle during the Zirid conquest (979–983), the only Barghawata ruler to die in combat.

Anonymous rulers governed through the final decades. In 1058 CE, the confederation fell to the Almoravids, who killed the Almoravid spiritual leader Abdullah ibn Yasin in battle before ultimately conquering the region. The Almohads completed the eradication in 1149 CE.


Rulers Chronology

#RulerReignKey Events
1Tarif al-Matgharic. 744Founded confederation
2Salih ibn Tarif744–791Religious foundation; disappeared
3Ilyas ibn Salih791–842Maintained taqiyyah (51 years)
4Yunus ibn Ilyas842–888Publicly revealed faith; forced conversion
5Abu Ghufair888–913Consolidated kingdom
6Abu al-Ansar Abdullah917–961Diplomatic peak (44 years)
7Abu Mansur Isa961–983Died in battle
8–?Anonymous rulers983–1058Final period; fell to Almoravids

Religion & Beliefs

Core Doctrine (As Attributed to Salih)

ElementDescription
God’s NameYakûsh (Berber)
ProphetsMuhammad (Arabs) + Salih ibn Tarif (Berbers)
Holy Book80-surah Berber Quran
MahdiSalih ibn Tarif (awaited return)

Unique Practices

PracticeOrthodox IslamBarghawata
Daily Prayers510 (5 day + 5 night)
Fasting MonthRamadanRajab
Assembly DayFridayThursday
Prayer PostureStanding + prostrationHalf standing, half sitting
Dietary ProhibitionsPork, alcoholEggs, rooster meat, animal heads
PorkProhibitedPermitted
CircumcisionRequiredNot practiced

Sacred Formulas (Tamazight)


Geography

Territory

Key Locations

Natural Features


Society & Culture

Tribal Structure

The confederation comprised 29 Masmuda Berber tribes:

Social Hierarchy

  1. Beni Tarif — Ruling dynasty
  2. Masmouda — Core tribal aristocracy
  3. Zenata & Senhaja — Enhanced status through commerce
  4. Sudanese-origin — Allies controlling Sahara caravan routes

Economy


Military

Forces at Peak

ComponentNumbers
Direct Knights3,200
Allied Horsemen10,000
Muslim Allies12,000
Total~25,000 mounted

Strategy

Key Conflicts

ConflictDateOutcome
Great Berber Revolt739–743Withdrew; established independence
Umayyad Incursions8th centuryRepelled
Zirid Invasion979–983Defeated; Abu Mansur Isa killed
Almoravid Conquest1058Destroyed; killed ibn Yasin before falling

Legacy

Historical Significance

Modern Reception

The Prophecy’s Failure

The 7th King prophecy never materialized. Salih never returned. The Almoravid conquest in 1058 ended both the confederation and the messianic hope.


Characters

Events

Concepts


Sources