Middle Ages869-883

Zanj Rebellion (869-883): Slave Revolt in Abbasid Iraq

The Zanj Rebellion of 869-883 was a revolt of enslaved East African labourers and others in southern Iraq led by Ali ibn Muhammad. Causes, war and legacy.

Thirteenth-century Arabic manuscript painting of a slave-market scene from the Maqamat of al-Hariri, painted more than three centuries after the Zanj Rebellion
Thirteenth-century Arabic manuscript painting of a slave-market scene from the Maqamat of al-Hariri, painted more than three centuries after the Zanj Rebellion. Image: Unknown author (13th-century Arabic manuscript) (Public domain), Wikimedia Commons
Contents

The Zanj Rebellion was a major uprising in southern Iraq that lasted from 869 to 883. Led by Ali ibn Muhammad, it drew its main strength from the Zanj, enslaved East African labourers who worked in the salt marshes around Basra. For fourteen years the rebels defied the Abbasid Caliphate, sacked Basra and threatened Baghdad’s access to the Gulf, before a long counter-offensive destroyed them.

Background: labour in the marshes

The lower Tigris and Euphrates, near the port of Basra, contained large tracts of marshy land encrusted with salt. Wealthy landowners, many of them from Basra, sought to reclaim this land for farming by scraping away the salty topsoil. The work was gruelling and was done by gangs of labourers, many of them enslaved Africans imported from the East African coast.

According to the main account, by the historian al-Tabari, these workers lived in harsh conditions, with poor food and no prospect of freedom. Their concentration in large work gangs, in difficult terrain far from the centres of power, made a revolt both likely and hard to suppress.

The caliphate itself was weak. In the 860s the Abbasid court at Samarra was torn by the “Anarchy at Samarra”, when Turkish military commanders made and unmade caliphs. Between 861 and 870 several caliphs were murdered or deposed.

Ali ibn Muhammad

The leader of the revolt, Ali ibn Muhammad, was probably of Persian origin, though he claimed descent from Ali ibn Abi Talib, the Prophet’s cousin and son-in-law. He had already tried to raise rebellions in Bahrain in eastern Arabia and in Basra, without success.

In September 869 he arrived in the marshland plantations and began to win over the labourers, promising them freedom, wealth and property. His religious message is described in the sources in terms that resemble the views of the Kharijites, an early Islamic movement that held any pious Muslim could lead the community, but his exact beliefs remain debated. Medieval writers hostile to him called him simply “the Master of the Zanj”.

The course of the revolt

The rebels used the dense network of canals and reed marshes to great advantage. Government armies sent against them were repeatedly defeated or ambushed. The Zanj built a fortified capital called al-Mukhtara (“the Chosen”) on a canal near Basra.

In September 871 the rebels stormed Basra, then one of the greatest commercial cities of the Islamic world. Much of the city was looted and burned and many inhabitants were killed. Over the following years the rebels raided widely in southern Iraq and Khuzistan in south-west Iran, taking Wasit in 878 and Ahvaz.

The rebels were helped by the Abbasids’ other troubles. In 876 the Saffarid ruler Ya’qub ibn al-Layth marched on Baghdad and had to be defeated at Dayr al-Aqul, and in Egypt the governor Ahmad ibn Tulun was building his own independent state, symbolised by the Mosque of Ibn Tulun.

Suppression

The turning point came when al-Muwaffaq, brother of the caliph al-Mu’tamid and the real power in the state, committed the empire’s resources to the war. From 879 his son Abu’l-Abbas, the future caliph al-Mu’tadid, led campaigns in the marshes, and from 880 al-Muwaffaq joined him with a large army and a river fleet.

The Abbasids cut off the rebels’ supplies, offered pardons to deserters and built a new town, al-Muwaffaqiyya, opposite al-Mukhtara to besiege it. After a long and costly siege the rebel capital fell in August 883. Ali ibn Muhammad was killed and his head was sent to Baghdad.

Who took part

Although the revolt is named after the Zanj, its supporters were mixed. The sources mention Bedouin Arabs, local peasants, freedmen and soldiers who deserted from the government side, alongside the African labourers. Historians such as Alexandre Popovic emphasise that the leadership was not African and that the movement’s aims were not those of a modern liberation movement.

Myths and facts

  • Myth: the rebellion was a fight to end slavery. Fact: the rebels sought freedom and power for themselves, and the sources state that they took slaves of their own.
  • Myth: the death toll is known. Fact: medieval figures, some in the hundreds of thousands, are considered exaggerated; no reliable totals exist.

Timeline

  • 869, September: Ali ibn Muhammad begins the revolt among the marsh labourers near Basra.
  • 871, September: The rebels sack Basra.
  • 876: The Abbasids defeat the Saffarids at Dayr al-Aqul, freeing forces for the south.
  • 878: The rebels take Wasit.
  • 879–880: Abu’l-Abbas and then al-Muwaffaq launch the main counter-offensive.
  • 881: The siege of al-Mukhtara begins.
  • 883, August: Al-Mukhtara falls and Ali ibn Muhammad is killed.

Why it matters

The Zanj Rebellion was one of the largest and longest revolts in medieval Islamic history. It devastated the region of Basra, drained the caliphate’s resources at a time of crisis and helped provincial rulers in Egypt and Iran gain independence, while showing the brutal conditions of plantation-style slavery in the medieval Middle East.

Frequently asked questions

Who were the Zanj?

Zanj was the Arabic name for people from the East African coast. In ninth-century Iraq it referred especially to enslaved Africans brought by sea and set to work clearing salty soil from the marshlands east of Basra.

Who led the Zanj Rebellion?

The leader was Ali ibn Muhammad, a man of probably Persian origin who claimed descent from the Prophet's cousin Ali. He had tried to raise revolts before and in 869 found followers among the enslaved labourers near Basra.

Was the Zanj Rebellion an attempt to abolish slavery?

No. The rebels sought freedom and wealth for themselves and their leader's rule, not an end to slavery as an institution. According to the sources, the rebels themselves took and owned slaves after their victories.

How many people died in the Zanj Rebellion?

No reliable figures exist. Medieval writers gave very large numbers, some running into hundreds of thousands, which modern historians treat as exaggerated, but the war clearly caused great loss of life and destruction around Basra.

How did the Zanj Rebellion end?

The regent al-Muwaffaq and his son Abu'l-Abbas besieged the rebel capital al-Mukhtara from 881. It fell in August 883, and Ali ibn Muhammad was killed.

Sources and further reading

  • al-Tabari, The History of al-Tabari, vols. 36-37 (SUNY Press translation)
  • Alexandre Popovic, The Revolt of African Slaves in Iraq in the 3rd/9th Century (Markus Wiener, 1999)
  • Hugh Kennedy, The Prophet and the Age of the Caliphates (Longman, 1986)
  • Encyclopaedia Britannica, "Zanj rebellion"

Cite this article

“Zanj Rebellion (869-883): Slave Revolt in Abbasid Iraq.” Chronicle, https://chronicle.bigworldlist.com/articles/zanj-rebellion-869/.