Launch app →

Africa · Islam and the Maghreb

Rustamid dynasty

drawn on the map AD 778–910

The Rustamid dynasty was an Ibadi Muslim theocracy that ruled much of the central Maghreb from 777 to 909, with its capital at the newly founded city of Tahert (near modern Tagdemt/Tiaret, Algeria). At its height its authority extended over central and western Algeria, parts of southern Tunisia, and the Jebel Nafusa and Fezzan regions of Libya as far as Zawila, making it the dominant power between the Idrisid west and the Aghlabid east.

Shown on the map
AD 778–910
Peak area
467k km²
Region
Africa

Overview

The Rustamid dynasty was an Ibadi Muslim theocracy that ruled much of the central Maghreb from 777 to 909, with its capital at the newly founded city of Tahert (near modern Tagdemt/Tiaret, Algeria). At its height its authority extended over central and western Algeria, parts of southern Tunisia, and the Jebel Nafusa and Fezzan regions of Libya as far as Zawila, making it the dominant power between the Idrisid west and the Aghlabid east.

History

The dynasty grew directly out of the Berber Kharijite revolts against the Umayyads. Ibadi missionaries from Basra had converted the great Berber tribes of Tripolitania by 740; an abortive Ibadi state (757–761) was crushed by the Abbasids, but in 777 the Ifriqiya-born Persian Abd al-Rahman ibn Rustam — reputedly descended from a client of the caliph Uthman — was elected imam. His tribeless Persian origin was precisely his qualification: it prevented any single Berber tribe from dominating the others. The imamate remained hereditary in his family, passing through Abd al-Wahhab (788–824), Aflah (824–872), and their successors.

Rustamid Tahert became a celebrated hub of trans-Saharan and Mediterranean commerce — nicknamed "Little Basra" or "the Iraq of the Maghreb" — where Ibadi merchants ran caravan routes to Wargla, Gao, and the Ghana Empire, trading and spreading Islam simultaneously. The state was remarkably cosmopolitan for its age: Christians, non-Kharijite Muslims, and rival Kharijite sects lived side by side, and its imams and scholars produced Qur'anic exegesis, jurisprudence, mathematics, and astronomy, copying eastern books into libraries at Tahert and Jabal Nafusa. Politically the imamate balanced between its neighbors: it warred with the Idrisids of Fez, reached a modus vivendi with the Aghlabids (who ceded Tripolitania), and maintained friendly ties with the Umayyads of Córdoba and the Midrarids of Sijilmasa.

Decline and legacy

Military decline followed a succession crisis in 873–874, and in 909 the rising Fatimid Caliphate conquered Tahert; the last imam fled with many Ibadis to Ouargla and ultimately the M'zab valley, where their descendants preserve Ibadi Islam to this day. The Rustamids stand as the most successful Kharijite state in history and a foundational chapter in the Islamization of the Maghreb and the Sudan belt.

Common questions

What was the Rustamid dynasty?
The Rustamid dynasty was an Ibadi Muslim theocracy that ruled much of the central Maghreb from 777 to 909, with its capital at the newly founded city of Tahert (near modern Tagdemt/Tiaret, Algeria). At its height its authority extended over central and western Algeria, parts of southern Tunisia, and the Jebel Nafusa and Fezzan regions of Libya as far as Zawila, making it the dominant power between the Idrisid west and the Aghlabid east.
When is the Rustamid dynasty shown on the map?
The border data draws the Rustamid dynasty AD 778–910. The source samples borders at fixed dates, so a span can begin late or run on past the end.
How large was the Rustamid dynasty?
At its greatest extent drawn on this map, the Rustamid dynasty covered about 467,000 km². That is the largest area the border data gives it across the years it is drawn, not necessarily its greatest extent in history.
Who ruled the Rustamid dynasty?
The dynasty grew directly out of the Berber Kharijite revolts against the Umayyads. Ibadi missionaries from Basra had converted the great Berber tribes of Tripolitania by 740; an abortive Ibadi state (757–761) was crushed by the Abbasids, but in 777 the Ifriqiya-born Persian Abd al-Rahman ibn Rustam — reputedly descended from a client of the caliph Uthman — was elected imam.
How did the Rustamid dynasty end?
Military decline followed a succession crisis in 873–874, and in 909 the rising Fatimid Caliphate conquered Tahert; the last imam fled with many Ibadis to Ouargla and ultimately the M'zab valley, where their descendants preserve Ibadi Islam to this day. The Rustamids stand as the most successful Kharijite state in history and a foundational chapter in the Islamization of the Maghreb and the Sudan belt.

Sources

Every source below was consulted while writing this entry.

This entry was written from the sources above and last updated .

This entry was researched and drafted with AI from the sources above, and has not been reviewed by a historian. How entries are made

Text available under CC BY-SA 4.0: reuse it with a credit to The World Through Time and a link to this page. Passages drawing on the Wikipedia articles listed above are also licensed CC BY-SA 4.0 by their contributors.

Border geometry for the map itself comes from Cliopatria v0.12 (Seshat Global History Databank, CC-BY-4.0).

See the Rustamid dynasty in its world

Open the atlas at AD 844 and every neighbour, rival and successor is on screen with it — then drag the slider and watch what happens next.

Open the map at AD 844 →