Middle Agesc. 800-1500
Swahili Coast City-States: Medieval Indian Ocean Trade Hubs
How Swahili towns from Mogadishu to Sofala grew rich on Indian Ocean trade between c. 800 and 1500: coral-stone towns, Islam, the Swahili language and gold.

Contents
The Swahili coast city-states were a chain of Muslim trading towns strung along roughly 3,000 kilometres of the East African coast, from Mogadishu in Somalia to Sofala in Mozambique. Between about 800 and 1500 these towns turned the seasonal monsoon winds into a source of wealth, shipping African gold and ivory to Arabia, Persia and India and receiving cloth, beads and Chinese porcelain in return. Their coral-stone mosques, the Swahili language and a distinctive urban culture still shape the coast today.
Background: from fishing villages to towns
The roots of Swahili society lie in Bantu-speaking communities that settled the coast and its islands during the first millennium AD. By about the 7th and 8th centuries small villages of mud-and-thatch houses, identified by a shared pottery style that archaeologists call Tana ware or Triangular Incised Ware, stretched from southern Somalia to northern Mozambique, the Comoros and northern Madagascar.
These villagers farmed, fished and worked iron, and they already traded with ships from the Persian Gulf. The Greek merchant handbook known as the Periplus of the Erythraean Sea, from the 1st century AD, had described a market called Rhapta somewhere on this coast, but continuous town growth came much later.
The name “Swahili” comes from the Arabic word sawahil, meaning “coasts” or “shores”. Medieval Arabic geographers more often called the region the land of the Zanj.
The monsoon and the Indian Ocean network
The key to the coast’s prosperity was the monsoon. From roughly November to March winds blow from the north-east, carrying sailing ships from Arabia and India down to East Africa; from about April to September they reverse and carry them home. Merchants therefore had to wait months in the Swahili ports, which encouraged permanent trading partnerships, intermarriage and the growth of towns with lodging, warehouses and markets.
The Baghdad-born historian al-Masudi sailed to East Africa in the early 10th century and described the Zanj lands, their ivory trade and the island of Qanbalu, usually identified with Pemba. By then the coast was firmly part of a network that reached Oman, the Persian Gulf, Gujarat and beyond.
Rise of the city-states
Between about 1000 and 1500 dozens of towns flourished. Among the best known were Mogadishu, Barawa, Pate, Lamu, Manda, Shanga, Malindi, Gede, Mombasa, Zanzibar, Kilwa and Mozambique Island, with Sofala as the southern gateway to the gold of the interior.
Each town was politically independent, usually ruled by a sultan or a council of leading families, and towns competed fiercely. Kilwa Kisiwani in southern Tanzania became the richest of them in the 13th and 14th centuries because it controlled the sea route to Sofala; its story is told in the article on the Kilwa Kisiwani sultanate.
Gold reached Sofala from the Zimbabwe plateau, where the rulers of Great Zimbabwe and earlier states drew wealth from mining and long-distance exchange. Other exports included ivory, rhinoceros horn, tortoiseshell, ambergris, mangrove poles for roofing in treeless Arabia, iron and enslaved captives. Imports included Indian cotton textiles, glass beads, glazed pottery from Persia and Iraq, and Chinese celadon and porcelain, fragments of which are still found in large numbers at coastal sites.
Coral-stone towns and architecture
From around the 11th century wealthy Swahili families began building in stone. Builders cut porites coral from the reef while it was still soft, carved it into door frames, niches and prayer niches, and bound coral rubble with lime mortar burned from coral. Houses were often single-storey blocks of narrow rooms around a sunken courtyard, with plastered wall niches used to display imported porcelain.
Mosques were the most prominent buildings. The Great Mosque of Kilwa, with its domes and vaults, and the ruined towns of Gede near Malindi and Songo Mnara near Kilwa show the sophistication of this architecture. Stone houses, however, were only part of each town; most residents lived in houses of earth and thatch that have left few traces.
Swahili language and Islam
Kiswahili is a Bantu language of the Sabaki group, closely related to languages of the Kenyan coast and the Comoros. Centuries of contact added many loanwords from Arabic, and later from Persian, Gujarati, Portuguese and English, but its grammar remains thoroughly African. The oldest securely dated Swahili manuscripts, written in Arabic script, date from the early 18th century, although oral poetry is much older.
Islam arrived early. At Shanga, excavations led by Mark Horton found a sequence of timber and then stone mosques beginning in the late 8th or 9th century, and a Kufic inscription at Kizimkazi on Zanzibar records the building of a mosque in AH 500 (AD 1107). By the 14th century being Muslim was central to the identity of the coastal elite, who followed the Shafi’i school of law and maintained links with scholars in Arabia.
Key people and visitors
Few individual Swahili rulers are known in detail, but outside observers left vivid accounts. The Moroccan traveller Ibn Battuta visited Mogadishu, Mombasa and Kilwa around 1331 and described their sultans, food and hospitality; his wider journeys are covered in Ibn Battuta’s Travels.
Chinese fleets under Zheng He reached the coast in the early 15th century, visiting Mogadishu, Barawa and Malindi, and Malindi sent envoys and animals to the Ming court. At the end of the century the Portuguese navigator Vasco da Gama called at Mozambique, Mombasa and Malindi in 1498, where he obtained a pilot for the crossing to India.
Consequences: the Portuguese arrival
Da Gama’s voyage opened the coast to a new and aggressive power. In 1505 a fleet under Francisco de Almeida sacked Kilwa and Mombasa, and Portugal tried to monopolise the gold trade through Sofala and Mozambique. Mombasa was attacked again in later decades, and the Portuguese built Fort Jesus there in 1593.
Portuguese control was never complete, and rivalry between towns allowed Malindi to profit as a Portuguese ally. Even so, the disruption of older trade routes contributed to the decline of several towns. In the late 17th century Omani Arabs drove the Portuguese from the coast north of Mozambique, beginning a new era in which Zanzibar would become the leading centre.
Myths and facts
- Myth: the towns were foreign colonies. Colonial-era writers often assumed that stone towns in Africa must have been built by Arabs or Persians. Excavations by Neville Chittick, Mark Horton and others show continuous growth from local African villages.
- Myth: the Shirazi traditions prove Persian origins. Many ruling families claimed descent from Shiraz in Persia. Historians generally treat these traditions as statements of prestige and Islamic identity rather than literal records of migration.
- Fact: the towns were cosmopolitan. Merchants from Arabia, Persia and India did settle and intermarry, and the coastal culture blended these influences with African foundations.
Timeline
- c. 1st century AD: The Periplus of the Erythraean Sea mentions the trading place of Rhapta on the East African coast.
- c. 750-850: Earliest known mosques built at Shanga in the Lamu archipelago.
- c. 916: Al-Masudi visits East Africa and describes the land of the Zanj.
- 1107: Mosque inscription at Kizimkazi, Zanzibar, dated AH 500.
- c. 1300-1340: Kilwa reaches its height; its Great Mosque is enlarged.
- c. 1331: Ibn Battuta visits Mogadishu, Mombasa and Kilwa.
- c. 1417-1419: Ships of Zheng He’s fifth voyage visit the East African coast.
- 1498: Vasco da Gama reaches Mombasa and Malindi.
- 1505: Portuguese forces sack Kilwa and Mombasa.
Why it matters
The Swahili city-states show that medieval Africa was an active partner in a trading world stretching from China to the Mediterranean. Their towns created a lasting urban, Muslim and multilingual culture, and Kiswahili, born on this coast, is today spoken by tens of millions of people across East and Central Africa.
Frequently asked questions
What were the Swahili city-states?
They were independent trading towns along the East African coast and offshore islands, from southern Somalia to Mozambique. Between roughly 800 and 1500 towns such as Kilwa, Mombasa, Malindi, Lamu and Mogadishu grew rich by linking the African interior with the Indian Ocean trade network.
Were the Swahili towns founded by Arabs or Persians?
No. Archaeology shows that the towns grew out of local African farming and fishing villages, and the Swahili language is a Bantu language. Arab and Persian merchants settled and intermarried, and some ruling families claimed Persian or Arabian descent, but the culture itself developed on the African coast.
What did the Swahili coast trade?
Exports included gold from the Zimbabwe plateau, ivory, enslaved people, mangrove timber, ambergris and tortoiseshell. In return the towns imported Indian cotton cloth, glass beads, Islamic glazed pottery and Chinese porcelain.
When did Islam reach the Swahili coast?
Excavations at Shanga in the Lamu archipelago found a sequence of small mosques beginning in the late 8th or 9th century. By the 12th to 14th centuries most coastal towns had Muslim ruling families and stone mosques.
What ended the golden age of the Swahili city-states?
Portuguese fleets arrived after Vasco da Gama's voyage of 1498 and sacked Kilwa and Mombasa in 1505. Portuguese attempts to control the gold and textile trade disrupted older commercial networks, although Swahili towns and culture survived.
Can you visit Swahili ruins today?
Yes. Kilwa Kisiwani and Songo Mnara in Tanzania, Lamu Old Town in Kenya and the Stone Town of Zanzibar are UNESCO World Heritage Sites, and the ruins of Gede near Malindi are a Kenyan national monument.
Sources and further reading
- Mark Horton and John Middleton, The Swahili: The Social Landscape of a Mercantile Society (Blackwell, 2000)
- Stephanie Wynne-Jones and Adria LaViolette (eds.), The Swahili World (Routledge, 2018)
- Encyclopaedia Britannica, "Swahili coast"
- UNESCO World Heritage Centre, "Ruins of Kilwa Kisiwani and Ruins of Songo Mnara"
Cite this article
“Swahili Coast City-States: Medieval Indian Ocean Trade Hubs.” Chronicle, https://chronicle.bigworldlist.com/articles/swahili-coast-city-states/.