Skip to content

The Swahili Coast City-States and the Indian Ocean Trading World

Kilwa, Lamu and Zanzibar were African-rooted, Indian Ocean-connected towns. What archaeology and ancient DNA now show about how they formed.

By Published 7 min read

Reign Creative LLC makes World History Timeline Sim, which this article links to, so we have a commercial interest in it. How we write and check articles.

Key takeaways

  • The Swahili coast was a string of independent trading towns rather than a single state, running from southern Somalia to northern Mozambique and out to Madagascar, the Comoros, Zanzibar and Lamu.
  • Kilwa Kisiwani was occupied from the ninth to the nineteenth century, peaked in the thirteenth and fourteenth, and minted its own currency from the eleventh to the fourteenth century.
  • Ancient DNA from 80 individuals in six medieval coastal towns shows a consistent pattern: predominantly African female ancestors and predominantly Asian male ancestors, with mixing beginning around AD 1000.
  • That genetic result matches the Kilwa Chronicle, the oldest history told by people of the Swahili coast, in showing Persian-linked ancestry before about 1500 and increasingly Arabian sources afterwards.
  • The shared features of Swahili culture were a language of African origin, Kiswahili, a predominant religion, Islam, and a distribution across coastal towns and villages — not a single government.
  • Zanzibar's Stone Town holds both sides of the nineteenth-century record: the site of the last slave market, now under Christ Church Anglican Cathedral, and the residence of a major slave trader.

The Swahili city-states were a chain of independent trading towns along the East African coast and its offshore islands — not one kingdom with one capital. They shared a language of African origin, Kiswahili, a predominant religion, Islam, and a commercial world that reached to Arabia, India and China. What they did not share was a government.

That distinction matters, because the single most common error about the Swahili coast is to treat it as a foreign implant on an African shore. The current evidence says something more interesting.

Where the coast was, and what a town looked like

The Swahili cultural region covered northern Mozambique, southern Somalia and the country between, plus Madagascar and the archipelagos of the Comoros, Kilwa, Mafia, Zanzibar and Lamu. Three of its best preserved settlements carry UNESCO World Heritage inscriptions, and between them they show the range.

Kilwa Kisiwani, on an island about 300 kilometres south of Dar es Salaam, was occupied from the ninth to the nineteenth century and reached its height in the thirteenth and fourteenth. Its standing remains, built in coral and lime mortar, include a Great Mosque begun in the eleventh century and considerably enlarged in the thirteenth, roofed entirely in domes and vaults, some decorated with embedded Chinese porcelain. The palace of Husuni Kubwa, built between about 1310 and 1333, has a large octagonal bathing pool. Nearby Songo Mnara preserves five mosques, a palace complex and some thirty-three domestic dwellings within enclosing walls.

Lamu Old Town, on the Kenyan coast about 350 kilometres north of Mombasa, is described by UNESCO as the oldest and best preserved example of Swahili settlement in East Africa, with a 16-hectare core continuously inhabited for over 700 years. Its buildings carry carved doors, arcaded seafronts, painted ceilings and wall niches — madaka and zidaka — set with Chinese porcelain.

Stone Town of Zanzibar, on Unguja island, is later in its surviving fabric: its major buildings date from the eighteenth and nineteenth centuries. Two-storey houses of coralline ragstone and mangrove timber, set in thick lime mortar, stand around open courtyards behind elaborately carved doors.

The question about origins, and how it was settled

For a long time the Swahili coast was described as an Arab or Persian colony. The evidence now points elsewhere, and it comes from two directions at once.

Archaeologically, the coastal towns grew out of earlier farming and fishing villages as the western Indian Ocean exchange system expanded between the sixth and early tenth centuries. Work published in 2025 shows how far inland that system reached: Persian Gulf ceramic sherds and Asian glass beads recovered in north-eastern South Africa place communities up to 400 kilometres from the coast inside Indian Ocean trade by the tenth century.

Genetically, a study published in Nature in 2023 reported ancient DNA from 80 individuals in six medieval and early modern coastal towns, dated between AD 1250 and 1800, plus one inland town after 1650. The pattern was consistent and striking. More than half the DNA of many individuals from coastal towns came from primarily female ancestors in Africa, with a large proportion — occasionally more than half — from Asian ancestors, of whom 80 to 90 per cent were Persian men. African and Asian populations began mixing around AD 1000, coinciding with the large-scale adoption of Islam.

Before about 1500, the Southwest Asian ancestry was mainly Persian-related. After that, it became increasingly Arabian, matching evidence of growing interaction with southern Arabia.

Two things are worth saying about that result. First, it does not make the Swahili "half foreign": it describes a locally rooted society that incorporated incomers through marriage over centuries, with African maternal lines throughout. Second, it converges with a local text. The authors note that the pre-1500 Persian pattern is consistent with the narrative of the Kilwa Chronicle — the oldest history told by people of the Swahili coast — which is a genuinely unusual case of a genetic study and an indigenous chronicle agreeing.

The study is also careful about the present. Millions of people on the coast identify as Swahili today, though for many that is a secondary identity behind town of origin, family history or traditional social status. Ancient ancestry is not modern identity, and the paper does not treat it as such.

How the trade actually worked

The economic basis was control of Indian Ocean commerce, and UNESCO's Kilwa inscription is specific about the goods. Gold and ivory from the hinterland went out; silver, carnelians, perfumes, Persian faience and Chinese porcelain came in, particularly between the thirteenth and sixteenth centuries.

The detail that tells you most is monetary. Kilwa Kisiwani minted its own currency from the eleventh to the fourteenth century. A town that issues coin is not a waypoint; it is a commercial authority that expects its money to be accepted.

Lamu's UNESCO dossier adds the human dimension: the growth and decline of these seaports involved interaction between Bantu, Arab, Persian, Indian and European populations, and that interaction is legible in the architecture, which fuses Swahili, Arab, Persian, Indian and European building traditions into something none of them produced alone.

There is a well-known outside witness. UNESCO records that the traveller Ibn Battuta stopped at Kilwa in 1331–1332 and described it as one of the most beautiful cities of the world. That is a fourteenth-century traveller's judgement rather than a measurement, and it should be read as the impression of a well-connected Moroccan jurist who had seen a great many cities — which is exactly what makes it worth having.

This is the maritime counterpart to the overland network described in the Silk Road for beginners, and it is a genuinely different system: monsoon sailing seasons rather than caravan stages, port cities rather than oasis towns, and a rhythm set by wind rather than by terrain.

Portuguese arrival and uneven decline

In the sixteenth century the Portuguese established a fort on Kilwa Kisiwani, and UNESCO dates the decline of Kilwa and Songo Mnara from that point. The Gereza that stands there now was built on the ruins of the Portuguese fort — a small architectural record of who displaced whom.

But "the Swahili coast declined" is too flat. Lamu was never abandoned and remains a centre for education in Islamic and Swahili culture, marked annually by the Maulidi festival. Zanzibar's greatest surviving buildings were built centuries after Kilwa's decline, under the nineteenth-century sultanate: the House of Wonders, a large ceremonial palace built by Sultan Barghash; the Old Dispensary; the Old Fort, raised on the site of an earlier Portuguese church.

Different towns, different trajectories. Anyone tempted to reach for a single collapse narrative should read why Rome fell first, because the same trap is there: a decline story that fits one case gets applied to a whole region.

The nineteenth century, stated directly

Zanzibar's UNESCO dossier does not soften the record, and neither should this article. Stone Town's monuments include Christ Church Anglican Cathedral, which commemorates David Livingstone's part in the campaign against the slave trade and which was built on the site of the last slave market, and, separately, the residence of a leading slave trader.

Zanzibar was one of the principal slave-trading ports in East Africa and simultaneously the base from which abolitionists campaigned. The Indian Ocean slave trade ran for far longer than the Atlantic one and is far less often taught. Any account of Swahili commercial wealth that stops at gold, ivory and porcelain is leaving out a trade in people that operated through the same ports, the same ships and often the same merchants.

Putting the coast on a timeline

Because the Swahili towns were never one polity, they are awkward to place on a conventional timeline — there is no founding date and no fall.

World History Timeline Sim, which is our own app built by Reign Creative, handles this by carrying the Swahili coast city-states as a single civilization record with landmark entries for Kilwa Kisiwani, Lamu Old Town and the Stone Town of Zanzibar, so the individual sites sit at their own dates while the wider culture spans the period. Cross-referencing that against the same centuries in South Asia and China on the world history map is the fastest way to see the Indian Ocean as a system rather than a margin.

The usual caution applies with unusual force here, because this is a subject where the popular account was wrong for a century. The app's content carries no citations and no external scholarly review, and its own disclaimer says it is not a substitute for textbooks, peer-reviewed scholarship or primary sources. Use the UNESCO dossiers, the published excavation reports and the 2023 ancient-DNA paper for anything you intend to rely on.

Finally, a note on dates. The Swahili chronology rests on stratigraphy, imported datable ceramics, coin finds and radiocarbon, and those methods carry different error bars at different depths — the reasoning is set out in how historians date events. More on trading states and their politics sits under civilizations and empires, within the wider education and brain training collection.

Good to know

Frequently asked questions

What were the Swahili city-states?
A series of independent or semi-independent trading towns along the East African coast and offshore islands, sharing a language, a religion and a commercial world rather than a government. UNESCO's inscriptions cover three of the best preserved: Kilwa Kisiwani and Songo Mnara in Tanzania, Lamu Old Town in Kenya, and the Stone Town of Zanzibar. Each was a port, a market and a centre of Islamic learning.
Were the Swahili people Arab or African?
African-rooted and Indian Ocean-connected, and the framing of the question is the problem. Ancient DNA published in 2023 from 80 individuals in medieval coastal towns found that more than half the ancestry of many individuals came from primarily female African ancestors, with a large Asian component — predominantly Persian men — arriving from about AD 1000. The language, Kiswahili, is of African origin.
What did the Swahili coast trade?
UNESCO records gold and ivory moving out from the African hinterland and silver, carnelians, perfumes, Persian faience and Chinese porcelain moving in, particularly between the thirteenth and sixteenth centuries. Kilwa Kisiwani minted its own currency from the eleventh to the fourteenth century, which tells you the towns were not merely transit points but monetised commercial centres in their own right.
Why did the Swahili city-states decline?
Not uniformly, and not all at once. UNESCO dates the decline of Kilwa Kisiwani and Songo Mnara from the sixteenth century, when the Portuguese established a fort on Kilwa. Lamu, by contrast, has been continuously inhabited for over 700 years and never emptied. The towns' fortunes tracked shifting control of Indian Ocean routes rather than a single collapse.

Sources

  1. Ruins of Kilwa Kisiwani and Ruins of Songo Mnara (opens in a new tab)UNESCO World Heritage Centre — accessed
  2. Lamu Old Town (opens in a new tab)UNESCO World Heritage Centre — accessed
  3. Stone Town of Zanzibar (opens in a new tab)UNESCO World Heritage Centre — accessed
  4. Entwined African and Asian genetic roots of medieval peoples of the Swahili coast (opens in a new tab)Nature (PubMed Central) — accessed
  5. New evidence for early Indian Ocean trade routes into the South African interior (opens in a new tab)Proceedings of the National Academy of Sciences (PubMed Central) — accessed

About the author

— The independent app studio that builds the apps covered on this site and publishes every article here. On Google Play it publishes as Reign Collective Apps.

We use AI tools to help research, draft and edit our articles. Each article lists the sources its factual claims rely on, and details about our apps come from their live Google Play listings. No article on this site has been reviewed by an independent expert unless the reviewer is named on it.

Spotted an error? Tell us — how corrections are handled is set out in our editorial policy.