"A town of enormous size." — Ibn Battuta on Mogadishu, The Rihla (tr. H.A.R. Gibb)
When most people think of Mogadishu, they think of the 1990s. The civil war. Black Hawk Down. The footage that defined how an entire generation of outsiders learned to picture this city.
That image is roughly 700 years out of date.
In 1331, Mogadishu was one of the great port cities of the Indian Ocean. It had a formal court with ministers, military commanders, and legal scholars, a textile industry whose fabrics were exported to Egypt, and a harbour so organised that incoming ships were met at sea before they docked, so the Sultan could decide which visitors were worthy of his hospitality.
We know this not mainly from Somali sources, since few written local records from this period survive. We know it from a Moroccan.
The Most Credible Witness in Medieval History
His full name was Shams al-Din Abu Abdallah Muhammad ibn Abdallah ibn Muhammad ibn Ibrahim ibn Muhammad ibn Yusuf al-Lawati al-Tanji. The world knows him as Ibn Battuta.
He was born in Tangier, Morocco, in 1304. At the age of 21, he left home for the hajj and never really stopped travelling. By the time he finished, he had covered an estimated 75,000 miles, from Mali to China, from Anatolia to the East African coast. He visited more of the medieval world than any other person whose record survives. His account, dictated to the scholar Ibn Juzayy in Fez in 1355 and known simply as the Rihla, "the journey," remains one of the most important documents of 14th-century civilisation ever written.
Ibn Battuta had no reason to flatter Mogadishu. He was a Moroccan scholar trained in Islamic law, passing through on his way south. By 1331 he had already seen Cairo and Alexandria, Damascus, Mecca and Medina, Baghdad, Tabriz, and the ports of Yemen. He was not easily impressed.
And he was capable of being unimpressed. Just before Mogadishu, he stopped at Zeila, on the northern Somali coast, and called it one of the dirtiest and most foul-smelling towns he had ever seen, thanks to its fish and the blood of the camels slaughtered in its streets. When Ibn Battuta praises a city, it is because the city earned it.
Before the Ship Even Docks
The first thing Ibn Battuta noticed about Mogadishu was its protocol.
When a ship approached the harbour, small boats called sanbuqs rowed out to meet it. Young men of the city came aboard carrying covered dishes of food, and each one offered his dish to a merchant, declaring him his guest. From then on, that young man was the merchant's host. The merchant lodged at his house, and the host acted as his broker, selling his goods and buying on his behalf. Anyone who traded with a visiting merchant without going through his host, Ibn Battuta noted, found that the sale was not recognised.
Meanwhile, the Sultan's officials came to find out where the ship had come from, who owned it, who its captain was, what it was carrying, and which merchants and notable passengers were aboard. All of this was reported to the Sultan, who then decided whom to host personally.
This was not bureaucratic inconvenience. It was a sophisticated commercial system. The Sultan knew what was arriving before it touched the wharf. Visiting merchants gained local knowledge and trusted representation. And the city's own citizens took a share of every transaction that passed through its harbour.
Ibn Battuta was not a merchant. He was a scholar. So instead of being claimed by a host, he was taken to the Qadi, the city's chief Islamic judge.
His name was Ibn Burhan al-Din al-Misri. Al-Misri means "the Egyptian."
The chief judge of Mogadishu carried the name of Egypt. That one detail tells you more about the city's cosmopolitan character than a dozen descriptions could.
The Sultan's Court
The Sultan of Mogadishu at the time of Ibn Battuta's visit was Abu Bakr ibn Shaikh Umar. Ibn Battuta records that he was of Barbara origin. Barbara was the name medieval Arab geographers used for the Somali coast and its people, so this is one of the earliest direct statements that Mogadishu's ruler was Somali. Ibn Battuta also notes that his people addressed him simply as "the Shaikh," that he spoke the local language, which Ibn Battuta called "Mogadishan" and which was most likely an early form of Somali, and that he also knew Arabic.
His court included wazirs who governed the city's affairs, amirs who commanded its soldiers, legal scholars, and royal eunuchs who managed access to the palace.
When Ibn Battuta was received, the greeting had its own choreography. A plate of betel leaves and areca nuts was brought out and shared among the Qadi, Ibn Battuta, and their companions in order of rank. Then the Sultan's formal welcome was delivered, and Ibn Battuta was lodged in a house set aside for students of religious learning.
On Friday, he saw the court in full display. After prayers at the great mosque, the Sultan walked out in procession under four canopies of coloured silk, each topped with the figure of a golden bird, accompanied by drums, trumpets, and pipes, with his amirs and soldiers around him.
After the procession, the business of government began. Ibn Battuta describes a clear division of justice. The Qadi heard matters of Islamic law. Other disputes went before a council of the wazirs and amirs. Cases that needed the Sultan's own judgement were referred to him in writing, and his answer came back the same day.
This was a court with protocol. A court that calibrated its hospitality according to rank, understood the difference between a scholar and a merchant, and ran a formal system of justice with separate channels for law and administration.
The Food
Ibn Battuta describes the food of Mogadishu in enough detail that you could almost recreate it.
The Sultan sent meals to his guest's lodgings. The centrepiece was rice cooked in ghee, served on a large wooden platter. Alongside it came a stew of chicken, meat, fish, and vegetables. There were unripe bananas cooked in fresh milk. There was soured milk with pickled lemons, bunches of pepper preserved in vinegar and salt, green ginger, and mangoes.
The quantities astonished him. The people of Mogadishu, he wrote, ate far more than he was used to, with one of them eating as much as a whole group of his own companions. The city slaughtered hundreds of camels every day to feed itself.
A city is known by its table. The table Ibn Battuta describes is the table of a place with abundance, sitting at the intersection of the Indian Ocean trade: spices from India, rice and livestock from the interior, fish from its own waters, and cooks with generations of practice combining them.
The Fabric
Mogadishu's greatest commercial product was cloth.
Ibn Battuta wrote that the city produced a woven fabric named after Mogadishu itself, unequalled anywhere, and exported to Egypt and beyond. In later centuries this cloth would be known as toob benadir, after the Benadir coast.
Think about what that means. Egypt in the 14th century was at the height of the Mamluk Sultanate, one of the wealthiest and most powerful states in the Islamic world, and its markets did not accept second-rate cloth. Yet Mogadishu's fabric was sold there under Mogadishu's own name. It was a brand before the word existed.
The weaving tradition outlived the medieval sultanate. Handwoven Benadir cloth was still being made in Mogadishu into the 20th century, one of the longest-running textile industries on the African coast.
The Currency
A city that mints its own coins is a city that controls its own economy.
The Sultanate of Mogadishu issued its own coinage. Surviving coins bear the names of 23 successive sultans, and some follow the style of the Fatimid coinage of Egypt. Most surviving examples date from the 14th century onward, so Mogadishu's mint was likely operating around the time of Ibn Battuta's visit and for generations afterwards.
These coins did not stay local. One bearing the name of the 15th-century Sultan Ali ibn Yusuf of Mogadishu was excavated in the present-day United Arab Emirates. Others were uncovered in Somalia itself, at Warsheikh, by the Italian scholar Enrico Cerulli during expeditions in 1920 and 1921.
When a city's coins turn up in the archaeological record across the sea in Arabia, it tells you something about the reach of its commerce.
A City of Stone
Ibn Battuta's Mogadishu was not new. Some of its buildings still stand.
The minaret of the Jama'a mosque in the Hamarweyne quarter carries an Arabic inscription dated to 1238. The mosque of Fakhr al-Din, one of the oldest in East Africa, is dated to 1269. The Arba'a Rukun mosque also dates to the 13th century. When Ibn Battuta walked to Friday prayers in 1331, he was walking past buildings that were already nearly a century old.
What Others Saw
Ibn Battuta is the most famous witness, but he was not the only one.
In the 13th century, the Andalusian geographer Ibn Sa'id al-Maghribi described Mogadishu as the leading Islamic centre of the region. The city's reputation preceded Ibn Battuta.
In the early 15th century, the treasure fleets of Ming China reached Mogadishu. The Chinese writer Fei Xin, who sailed with the fleets, described a walled city of stone houses several storeys high, and Mogadishu sent its own envoys to the Ming court in return.
In 1499, Vasco da Gama passed Mogadishu on his way back from India. The account of his voyage describes a large city with houses of four and five storeys, big palaces at its centre, and towers around it. The Portuguese response was telling: as they sailed past, they fired their cannon at the city.
Duarte Barbosa, writing around 1516, noted that ships from the kingdom of Cambay in India regularly sailed to Mogadishu carrying cloth and spices, and returned with gold, wax, and ivory. The city's markets, he wrote, held an abundance of meat, wheat, barley, horses, and fruit.
Observers from Andalusia, Morocco, China, and Portugal, writing across four centuries, all described the same thing: a city of size, wealth, organisation, and commerce.
The World Came to Mogadishu
The Egyptian Qadi was not an anomaly.
Mogadishu in the 14th century was a city that drew talent from across the Islamic world. Scholars came to study and teach. Merchants came to trade and were adopted into the households of local hosts. Ibn Battuta himself was welcomed not as a stranger but as a guest of standing, folded into the city's existing networks of learning and hospitality with practised ease.
This is what cosmopolitan actually means, before the word became a buzzword. It means a city where people from many places come, stay, and contribute, and where the city is better for it.
The medieval Somali coast was a crossroads. Mamluk Egypt was buying its cloth. Indian merchants were selling it spices. Scholars from across the Islamic world were serving in its courts. Within a century, Chinese imperial fleets would anchor off its shore.
Why the Wider World Forgot
Mogadishu was never lost to specialists. Arab geographers wrote about it, and in the 20th century scholars such as Enrico Cerulli and G.S.P. Freeman-Grenville studied its coins, inscriptions, and chronicles in detail. What it never received was a place in the popular story of the medieval world.
Part of the reason is language. Ibn Battuta wrote in Arabic, and his Rihla did not appear in a full European translation until the French edition of 1853 to 1858, five centuries after it was written. By then, the colonial era was well under way.
Part of the reason is the story the colonial era told. The popular history of the medieval world was written around Venice and Florence and Paris, even though the trade that enriched Venice ran along the same Indian Ocean routes that passed through Mogadishu's harbour. African cities of commerce, learning, and political sophistication did not fit that story, so they were left at its margins.
So Mogadishu was footnoted. Referenced occasionally. Never placed at the centre of the conversation about medieval civilisation where it belongs.
Conclusion
In 1331, a Moroccan scholar arrived by ship on the East African coast and found a city that impressed him.
He had already walked through the markets of Cairo, prayed in the mosques of Damascus and Mecca, and crossed Iraq and Persia. He had just called the previous port on his route one of the filthiest towns he had seen. He was not a man who handed out compliments to places that did not earn them.
He called Mogadishu a town of enormous size. He described its merchants as wealthy. He documented its formal court, its commercial protocols, its system of justice, its cuisine, its hospitality, and its cloth.
Then he sailed south to Mombasa and Kilwa and kept travelling, and the world largely forgot what he had recorded.
Mogadishu in 1331 was not a city waiting to be discovered. It had mosques a century old when Ibn Battuta arrived. It would mint coins that crossed the sea to Arabia, receive Chinese fleets, and weave its famous cloth for centuries after he left. It sold fabric to Egypt, appointed an Egyptian as its chief judge, and ran its harbour like a state.
The modern world's image of Mogadishu is not wrong, exactly. It is just describing a different century. The city that existed in 1331 is something the world has not yet fully reckoned with.
This post is a small attempt to start.
Sources
- Ibn Battuta, The Travels of Ibn Battuta, A.D. 1325–1354, trans. H.A.R. Gibb (Hakluyt Society); original Rihla dictated to Ibn Juzayy, 1355.
- Ross E. Dunn, The Adventures of Ibn Battuta: A Muslim Traveler of the Fourteenth Century (University of California Press, 1986).
- Ibn Sa'id al-Maghribi, Kitab al-Jughrafiya (13th century).
- Fei Xin, Xingcha Shenglan (1436).
- A Journal of the First Voyage of Vasco da Gama, 1497–1499, trans. E.G. Ravenstein (Hakluyt Society, 1898).
- Duarte Barbosa, The Book of Duarte Barbosa (c. 1516), trans. M. Longworth Dames (Hakluyt Society).
- G.S.P. Freeman-Grenville, The East African Coast: Select Documents (1962).
- G.S.P. Freeman-Grenville, "East African Coin Finds and Their Historical Significance," Journal of African History (1960).
- Enrico Cerulli, Somalia: Scritti vari editi ed inediti (1957).
- Encyclopaedia of Islam, "Makdishu."
