Esperaunce

A manuscript painting of a turbaned ruler seated on a throne with a spear-bearer beside him and two petitioners approaching.

The Islamic Caliphates · Economy and Trade

The revolt of the salt marshes

Maqamat al-Hariri, Baghdad, 1237, Bibliotheque nationale de France, public domain, via Wikimedia Commons.

The Archives/The Islamic Caliphates/Economy and Trade

They minted their own coins and gave their capital a name meaning the chosen city. For fourteen years the richest empire on earth could not get into it.

South of Basra, where the Tigris and Euphrates meet and run out into marsh, the soil is salt. Under it, in the ninth century, lay land that could be farmed if the salt crust was stripped away, and there were estates in the region owned by absentee proprietors who had bought the right to reclaim it. The work was done by gangs of enslaved labourers, many of them east African, working in standing water and heat, housed in camps, fed on flour, dates and semolina, and worked in numbers that the sources put in the thousands per estate.

In September 869 a man called Ali ibn Muhammad went among those camps and told them that he would free them, arm them, and make them owners of the property and the slaves of the men who currently owned them. What followed lasted fourteen years, destroyed the second city of the caliphate, tied down the empire’s armies, and came close to reaching Baghdad.

❦

On this page

Who the Zanj were

The term needs care, because it has been used loosely in both medieval and modern writing. Zanj in Arabic geographical usage refers to the east African coast, roughly modern Kenya, Tanzania and Mozambique, and to its inhabitants. The name survives in Zanzibar.

The labour force in the Basra marshes included people from that region, brought through the Indian Ocean trade described in A single market from Spain to the Indus. It also included others: enslaved people from elsewhere in Africa, from the Gulf, from Iran, peasants of the marsh region, bedouin, and army deserters who joined later. Modern scholarship, particularly Alexandre Popovic’s study, has emphasised that the rebellion was not exclusively African and not exclusively servile, which matters for how it should be classified.

What is not in doubt is that it began among enslaved agricultural labourers and that its initial core was African.

The scale of Islamic slavery

The institution has to be described accurately, because it differed from the Atlantic system in important ways and was not therefore benign. Slavery was legal, widespread and continuous across the Islamic world from the conquests to the twentieth century. The law regulated it in detail: manumission was meritorious, the child of a master by an enslaved woman was free and the mother could not then be sold, and enslaving a free Muslim was prohibited.

A wide manuscript painting of a seated figure with guards in long coats and tall caps holding swords on either side.
Turkish guards around a seated figure in the Maqamat of 1237. By the thirteenth century the caliph’s soldiers had been Turks for four hundred years.Bibliotheque nationale de France, public domain, via Wikimedia Commons.

Most enslaved people in Islamic societies were domestic, or were soldiers, or were concubines. Large-scale agricultural gang labour of the kind the Atlantic plantations used was comparatively rare. The Basra salt flats are the major exception, and that is precisely why the revolt happened there.

The military use was its own system. From the ninth century caliphs bought Turkish boys from central Asia and trained them as a personal guard, the ghilman or mamluks, which produced a caste of enslaved soldiers who within a generation were making and unmaking caliphs, and which eventually produced the Mamluk sultanate of Egypt. Estimates of the total volume of the trans-Saharan and Indian Ocean trades over a thousand years run into many millions, with wide error bars. The scholarship on this, notably by Ralph Austen and by Ehud Toledano, is careful about its uncertainty.

The work itself

It is worth being concrete about what these men were actually doing, because the conditions explain the rising better than any ideology. The land south of Basra had been under seawater and river silt and carried a crust of salt over usable soil. Reclaiming it meant stripping that crust by hand, in gangs, and carting it away to be dumped in heaps.

A pen drawing of a river in flood with boats and a domed building on the far bank.
The Tigris in flood at Baghdad, drawn by Donald Maxwell during the First World War. The river was the city’s supply line and its permanent danger.Donald Maxwell, Imperial War Museum, public domain, via Wikimedia Commons.

The salt itself was then sold, so the operation had two products: the cleared land and the salt, and the labour was profitable twice over. The spoil heaps were large enough to remain visible on the ground for centuries, and Arabic geographers describe them as a feature of the region. The conditions were standing brackish water, summer temperatures well over forty degrees, malaria, and rations that al-Tabari specifies as a few handfuls of flour, semolina and dates.

The owners were absentees in Basra and Baghdad who had bought reclamation rights, and the workforce dealt only with overseers. That combination, gang labour, an absent proprietor, a remote and defensible terrain, and a concentration of men with nothing to lose, is what made this revolt possible and is why the Islamic world produced very few others on the same scale. Almost everywhere else, enslavement was domestic and dispersed.

Ali ibn Muhammad

The leader is an unreliable figure in a literal sense, and that is part of the story. He came from near Rayy in Iran and had been a poet and a minor political agitator, with two earlier failed risings in Bahrayn and Basra behind him. He claimed descent from Ali ibn Abi Talib through Zayd, which would make him an Alid with a claim to lead the community. Al-Tabari, who is the main source, rejects the genealogy and says he was a fraud.

A shallow ceramic bowl painted in metallic gold on white with four stylised animals arranged around the centre.
A tenth-century lustre bowl. Lustre is a second firing in a reducing atmosphere that leaves a thin metallic film, and it was an Iraqi invention.Metropolitan Museum of Art, New York, CC0.

His theological position appears to have been Kharijite. He used the Kharijite slogan that judgment belongs to God alone, and Kharijite doctrine held that any qualified Muslim could lead regardless of birth, which was obviously useful when addressing enslaved men. He had coins struck with his name and Qur’anic legends, and he had the Friday sermon preached in his own name, which are the two acts by which a ruler declared himself in the medieval Islamic world.

What he offered

The recruiting method is described in some detail and it is worth quoting the shape of it. He went to the labour camps and spoke to the gang leaders, telling them that their masters starved and beat them and that he would raise them up. According to al-Tabari he then had the masters and overseers brought before their own workers, had them flogged, and released them with a warning, which established both that the world had changed and that the new authority was capable of restraint.

He promised freedom, property and the ownership of their masters’ estates. The promise was kept selectively. The rebellion enslaved people itself, including the women of captured Basra, and distributed them among its followers. It was a revolt against the position of these particular enslaved people, not against slavery.

That distinction has been the subject of a long argument, especially where the rebellion has been claimed as an anticipation of later liberation movements. It is not one.

The war

The military course of the revolt is well documented because the caliphate wrote it up at length. The rebels’ advantage was the terrain. The marshes of southern Iraq are a maze of channels and reed beds navigable by shallow boats and impassable to a conventional army.

A tall spiral tower of pale brick rising in a helix from a walled enclosure, with a town behind it.
The Malwiya at Samarra, built in the 850s beside a mosque that was the largest in the world. Samarra was the Abbasid capital for barely fifty years.Photograph by Jim Gordon, CC BY 2.0, via Wikimedia Commons.

They built fortified camps on the waterways, the principal one named al-Mukhtara, the chosen, with walls, a mint, granaries and a fleet of small craft. They took Ubulla in 870, Ahwaz in Khuzistan the same year, and Basra itself in September 871. The sack of Basra was ferocious; the sources describe the congregational mosque burned with people inside and casualty figures in the tens of thousands that are certainly inflated.

By 879 they had reached Wasit and their raiding parties were within seventy miles of Baghdad. The caliphate was simultaneously dealing with the Saffarids in Iran, with Tulunid autonomy in Egypt, and with the aftermath of the anarchy at Samarra in which four caliphs had been killed or deposed in nine years.

The suppression

The counter-campaign was run by one man over five years and it is a study in method. Al-Muwaffaq, brother of the caliph al-Mutamid and the effective ruler, took charge in 879. He did not attempt to fight in the marshes. He built a base city, al-Muwaffaqiyya, opposite the rebel capital, with its own market and mint, and settled in.

He assembled a river fleet, blockaded the waterways, and used artillery mounted on barges. He offered amnesty to rebels who came over, and paid them, which drained the rebellion steadily of its more marginal supporters. And he took the fortified camps one at a time over three years. Al-Mukhtara fell in August 883. Ali ibn Muhammad was killed and his head was sent to Baghdad.

What it cost

The consequences were substantial and mostly economic. Basra had been the great port of the Gulf and the commercial gateway of Iraq. It never recovered its position, and the maritime trade shifted towards Siraf and later towards the Red Sea and Egypt.

A small white jug with a handle painted with blue and green splashes.
A Basra jug of the ninth century painted in cobalt and copper green on a white tin glaze. Iraqi potters invented the technique to imitate Chinese porcelain they could not make.Cleveland Museum of Art, CC0, via Wikimedia Commons.

The reclamation of the salt flats stopped and does not appear to have been resumed on the same scale, which removed a category of agricultural investment from the region. The suppression cost enormous sums at a moment when Abbasid finances were already deteriorating, and it required the transfer of authority to a military commander, al-Muwaffaq, in a way that prefigured the later reduction of the caliph to a figurehead described in Thirteen days in 1258.

A black and white map labelled in Arabic, showing a circular walled city at the centre of a larger town beside a river and canals.
A reconstruction plan of al-Mansur’s round city of Baghdad, founded in 762. Nothing of it survives above ground and every plan is an inference from written descriptions.Plan of the round city of Baghdad, public domain, via Wikimedia Commons.

And it hastened the general decline of Iraqi agriculture, which is the long-run story underneath everything else in this period.

The Qarmatians

One direct consequence deserves noting because it was worse. A movement that drew on some of the same discontent, the Qarmatians, emerged in the same region within a decade of the revolt’s suppression. They were an Ismaili offshoot, established a state in Bahrayn, and raided across Iraq and Arabia for over a century.

A sepia photograph of the Kaaba in the courtyard of the mosque at Mecca, houses climbing the hills behind, with handwritten labels below.
The Kaaba photographed by Muhammad Sadiq Bey in 1880, among the first photographs ever taken at Mecca.Muhammad Sadiq Bey, Khalili Collection, CC BY-SA 3.0, via Wikimedia Commons.

In 930 they sacked Mecca during the pilgrimage, killed pilgrims in the sanctuary, and carried off the Black Stone from the Kaaba, holding it for twenty-two years. That is the single most shocking act in the internal history of medieval Islam, and it happened in a region the caliphate had just spent fifteen years and a fortune failing to pacify permanently.

How it has been written about

The historiography is unusually loaded and worth being explicit about. For a long time the revolt was barely discussed. Theodor Noldeke wrote on it in the nineteenth century and then little was published for decades.

From the mid-twentieth century it was taken up in two directions. Arab nationalist and Marxist historians read it as a class struggle and as a precursor of modern revolutionary movements. Writers concerned with African diaspora history read it as a major episode of African resistance.

Alexandre Popovic’s 1976 study, and subsequent work, pushed back on both, arguing that the composition was mixed, the aims were not abolitionist, and the leader’s programme was a bid for power rather than a social programme. The current position accepts that it was a genuine revolt of enslaved labourers on a very large scale, that it was led by a man with his own political ambitions, and that it does not map onto any modern category.

The sources

A closing note, since almost everything above comes from one place. Al-Tabari devotes a large section of his history to the revolt, drawing on an account by Muhammad ibn al-Hasan ibn Sahl, who was attached to al-Muwaffaq’s staff and who wrote from the government side. That is the fundamental source and it is a campaign narrative by the victors. It is detailed, dated, and hostile.

There is no rebel account. Nothing survives written by anybody in al-Mukhtara, which is what one would expect, and it means the rebellion’s own understanding of what it was doing has to be inferred from its coins, its slogans and its enemies’ summaries. The one partial exception is the coinage, which survives and which states a claim in the rebels’ own words.

A revolt of enslaved people documented entirely by the state that crushed it is the normal condition of such evidence, and it should make every characterisation of the rebels’ motives provisional.

Sources

Ancient

  • Al-Tabari, History of the Prophets and Kings, the sections on the Zanj revolt
  • Al-Masudi, Muruj al-Dhahab; the coinage struck at al-Mukhtara
  • Al-Muqaddasi and the geographers on southern Iraq and Basra

Modern

  • Alexandre Popovic, The Revolt of African Slaves in Iraq in the 3rd/9th Century, translated 1999
  • Ghada Hashem Talhami, on the identity of the Zanj, International Journal of African Historical Studies, 1977
  • Hugh Kennedy, When Baghdad Ruled the Muslim World, 2004
  • Ehud Toledano, As If Silent and Absent: Bonds of Enslavement in the Islamic Middle East, 2007
  • Michael Bonner, Jihad in Islamic History, 2006, on the state and its armies

New civilisations are announced by email as they are written.

Passages may be quoted with my name and a link to the page, and copies may be handed out in a classroom, lecture or study group as long as the site’s name stays on them. Please ask first before republishing a whole essay or Archives page, translating one, or using the writing in anything that is sold. Use for training machine-learning systems is not permitted. The details are on Using this site.

Images are credited individually; rights remain with their holders.

© 2026 Esperaunce. All rights reserved.