What is the background to this event?
In the ninth century, the Abbasid Caliphate, ruled from Baghdad and Samarra, was one of the richest and most powerful states in the world. Its port of Basra, at the head of the Persian Gulf, traded across the Indian Ocean.1
- Wealthy residents of Basra had acquired large areas of marshland in southern Iraq, which they could own on condition that they made it fit for farming. To do this, the salty, nitrous topsoil had to be dug away by hand.1
- The work was done by large gangs of enslaved people, many of them East Africans brought through the Indian Ocean slave trade, known in Arabic as the Zanj. They lived in work camps, and appear to have been poorly fed and badly treated.1
- Earlier revolts by the Zanj, in 689–90 and 694, had quickly failed.1
- From 861 the caliphate was weakened by the "Anarchy at Samarra", a decade of violent struggle in which several caliphs were murdered and the army was divided.1
Who were the key people?
- Ali ibn Muhammad
A poet and political adventurer of disputed origins who claimed descent from the Prophet's family. He led the rebellion and became known as Sahib al-Zanj, 'Master of the Zanj'. He was killed in 883.
- The Zanj
Enslaved and freed East Africans, joined by other enslaved people, poor townspeople, peasants and some Bedouin.
- Al-Muwaffaq
The brother of the caliph and the real ruler of the caliphate, who led the campaign to crush the rebellion.
- Abu al-Abbas
Al-Muwaffaq's son, later the caliph al-Mu'tadid, who commanded the Abbasid army.
- Al-Tabari
The great historian of Baghdad (839–923), a contemporary whose chronicle is our main source.
What happened?
In 869, Ali ibn Muhammad, who had already failed to start rebellions in Bahrain and in Basra itself, returned to the region and began to seek out enslaved workers in the Basra marshes, asking about their working conditions and food. He promised them freedom, wealth and a better life, and quickly won followers.1
The revolt, which began in September 869, grew rapidly:1
- The rebels waged a guerrilla war in the marshes, raiding towns, villages and army camps — often at night — seizing weapons, horses and food, and freeing other enslaved people.
- As the rebellion grew, they built fortresses and a capital, al-Mukhtara, created a fleet to move through the canals and rivers, collected taxes and minted their own coins.
- The rebels took the port of al-Ubulla in 870 and Ahwaz in 871. In September 871, after a long blockade, they captured Basra itself; the city was burned and many of its inhabitants were massacred.
- By 879 the rebellion had reached its furthest extent: the rebels sacked Wasit and advanced along the Tigris to within fifty miles of Baghdad.
From late 879 the Abbasid government, led by al-Muwaffaq and his son Abu al-Abbas, regained the initiative. They drove the rebels back into the marshes and, from February 881, besieged al-Mukhtara. Al-Muwaffaq offered generous terms to rebels who surrendered, and many did.1 Al-Mukhtara fell in August 883, and Ali ibn Muhammad was killed. His head was mounted on a lance and carried by boat up and down the canals so that everyone could see that he was dead, and was later paraded through Baghdad.1

What happened next?
- Devastation: the war left southern Iraq devastated. Cities and towns were burned, farmland abandoned and trade disrupted. The tenth-century historian al-Mas'udi reported an estimate of 500,000 dead, but added that this was "empty conjecture".
- Abbasid recovery: the victory strengthened al-Muwaffaq and his son, who as caliph al-Mu'tadid (892–902) briefly restored the power of the caliphate.
- Plantation slavery declined: some historians argue that the revolt discouraged the use of large gangs of enslaved agricultural workers in the region, although slavery in other forms continued.
Why does it matter?
The Zanj Rebellion was one of the largest and longest revolts of enslaved people in history. For fourteen years, people brought from Africa to labour in the marshes of Iraq fought one of the world's great empires and built a state of their own.
- It is an important part of the history of the African diaspora in the Islamic world and the Indian Ocean, which is much less well known than the Atlantic slave trade.
- It shows that plantation-style slavery and resistance to it existed long before the colonisation of the Americas.
- It raises difficult questions about how rebellions against oppression can also produce violence and new forms of domination.
Go further
What do others say?How it was seen at the time, and where historians disagree
The sources
Almost everything we know comes from al-Tabari and other writers who supported the Abbasid government. They present Ali ibn Muhammad as an impostor and the rebels as brutal destroyers. No account by the rebels themselves survives, although their coins do.
Historians' debates
- A slave revolt? Historians such as Alexandre Popovic see it primarily as a revolt of enslaved Africans. Ghada Talhami argues that most participants were free East Africans and Arabs, and that runaway slaves could not have organised such a movement alone.
- Against slavery? According to al-Tabari, the rebels themselves took captives and enslaved people, including Arab women. Historians caution that this comes from hostile sources, but most agree that the rebellion did not aim to abolish slavery as such.
- What did Ali ibn Muhammad believe? He claimed descent from the family of the Prophet and at times adopted the egalitarian ideas of the Kharijites; historians debate how sincere or consistent these claims were.
How do we know?The evidence, and a source from the time
- Al-Tabari's History of the Prophets and Kings, which gives a detailed, year-by-year account.
- The writings of al-Mas'udi and other Arabic historians and geographers.
- Coins minted by the rebels.
- Archaeological and environmental evidence of land reclamation in southern Iraq.
How is it remembered?Memorials, anniversaries and arguments over memory
- The rebellion has been remembered in modern Arabic literature and art, and by historians of the African diaspora.
- In the twentieth century, some Arab writers and activists presented it as an early social revolution of the oppressed.
- Communities of African descent in southern Iraq, around Basra, trace part of their history to the slave trade of this period.
Open questionsWhat this story leaves unresolved
- What do the conditions of work in the Basra marshes tell us about why the revolt began?
- How should we use sources written entirely by the rebels' enemies?
- Can a rebellion be both a struggle for freedom and a source of new oppression?
- Why is slavery in the Indian Ocean world less well known than slavery in the Atlantic?
Similar eventsOther struggles like this one
- 73 BCESpartacus and the Slave Revolt — Seventy gladiators broke out of a training school armed with kitchen knives. Within two years, an army of some 120,000 enslaved people had defeated Rome's legions again and again.
- 1791The Haitian Revolution — The only revolution in history in which enslaved people overthrew their enslavers and founded an independent state.
- 1835The Malê Revolt — During Ramadan, enslaved and freed African Muslims rose up in Salvador — the most significant urban revolt by enslaved people in the history of the Americas.
Find out moreBooks, websites and places to visit
- ReadAlexandre Popovic — The Revolt of African Slaves in Iraq in the 3rd/9th Century (1999)
- ReadAl-Tabari — The History of al-Tabari, vol. 36, The Revolt of the Zanj (1992)
- OnlineWikipedia: Zanj Rebellion
References
- Wikipedia, 'Zanj Rebellion', drawing on al-Tabari, al-Mas'udi, Alexandre Popovic and Ghada Talhami, on the background, the course of the revolt, its leader, its end and the debates about its participants.
- Wikipedia, 'Zanj Rebellion'
- Alexandre Popovic, The Revolt of African Slaves in Iraq in the 3rd/9th Century, trans. Léon King (Markus Wiener, 1999).
- Al-Tabari, The History of al-Tabari, vols 36–37, trans. David Waines and Philip M. Fields (State University of New York Press, 1987–1992).
- Ghada Hashem Talhami, 'The Zanj Rebellion Reconsidered', International Journal of African Historical Studies 10:3 (1977).
All stories · Open this story in the interactive atlas · Glossary of key words
