Mogadishu is one of the oldest and most battered cities on the Indian Ocean. Before it became a byword for war it was Xamar: a Swahili city-state built of coral stone that minted its own coins, exported textiles to Egypt and welcomed Ibn Battuta, who in 1331 described it as an enormous and extremely wealthy city. That past is still there, in the alleys of Hamar Weyne and Shangani, in the Arba'a Rukun mosque of 1268-1269 and in the layout of the old port.
On top of that layer came all the others: the Sultanate of Mogadishu, the Ajuran Empire, the Portuguese and Omani presence, the Zanzibar protectorate, Italian Somaliland, which made the city its capital from 1905 and left it a Norman-style cathedral and a monumental centre, independence in 1960, the dictatorship of Siad Barre and, since 1991, three and a half decades of civil war that destroyed or damaged half of the city's buildings and wiped out much of that heritage.
This guide is not an invitation to travel: Somalia sits at the highest alert level of every foreign ministry, and Mogadishu carries a real risk of attacks and of kidnapping of foreigners. It is a guide to understanding the city —what it was, what it lost, what is being rebuilt and how the very limited visiting that exists works today—, so that anyone weighing a trip for work, aid, journalism or family ties knows exactly what they are exposing themselves to and has dated, attributed information to go on.
Mogadishu, Xamar in Somali, was one of the great ports of the western Indian Ocean in the Middle Ages: a coral-stone trading city-state, with 13th-century mosques still standing, its own currency and a textile industry that exported to Egypt and the Arab world. Ibn Battuta visited in 1331 and described it as “an exceedingly large city”. It later became part of the Ajuran Empire, fell into the orbit of Oman and the Sultanate of Zanzibar, and in 1905 became the capital of Italian Somaliland, which gave it a monumental centre and what was at the time the largest Christian cathedral in Africa. Somalia became independent in 1960 with Mogadishu as its capital; in 1969 Siad Barre seized power, and in 1991 his fall opened a civil war that devastated the city, destroyed or damaged about half of its buildings and made it the stage for the international intervention, the 1993 battle and, from 2007, the conflict with Al Shabaab, which was driven out of control of the capital in August 2011 but can still carry out attacks there.
Read the full history ↓A thousand years as an Indian Ocean port in Africa's most battered city: medieval textiles, coral-stone houses, Italian art deco, the civil war's green line and a stop-start reconstruction.
Read the history of Mogadishu and Banaadir (south, with extreme caution) →No exact prices: a scale from $ (budget) to $$$$$ (luxury), with 2-3 options per category.
Origins, formation and what the sources say.
Long before its name became linked with war, Mogadishu — Xamar in Somali — was one of the great ports of the western Indian Ocean. The Somali coast was part of a trading system that linked the Horn of Africa with Arabia, Persia, India and, along the monsoon route, China. The winds did the rest: between November and March the northeast monsoon pushed the dhows south; between April and September the southwest monsoon carried them back home. Cities such as Mogadishu, Merca and Brava were built around that rhythm.
From early on, the city grew around two cores that still exist: Hamar Weyne and Shangani. The architecture of that period has an unmistakable signature: coral stone cut from the reefs of the Indian Ocean, which gave the buildings their typical white colour and remarkable durability. Multi-storey houses, inner courtyards, carved doors and narrow alleys designed for shade and breeze: the same building language you find in Lamu, Zanzibar or Kilwa, with Mogadishu as its northern end.
At its medieval height, Mogadishu was a city-state with its own sultanate. It minted its own coins and built up a textile industry that exported its cloth. Its fabrics, known in Arabic sources by the city's name, reached Egypt and the wider Arab world. It also controlled a large part of the regional gold trade. In the 13th century it came into the orbit of the Ajuran empire, the great Somali power of the interior and the coast between the 13th and 17th centuries, which ran a system of wells, stone fortresses and river control along the Shabelle and Juba rivers.
The best-known account comes from Ibn Battuta, the traveller from Tangier who stopped in the city in 1331 on his way to Kilwa. He described it as an enormously large city with extremely wealthy merchants, famous for its textiles, and he recorded the protocol used to receive visitors of rank. It is one of the best written snapshots we have of the Swahili Indian Ocean in the 14th century.
Against all odds, two buildings survive from medieval Mogadishu, and they are the most valuable heritage the country has. Both went up at almost the same time, in the second half of the 13th century, when the city was at its peak.
The Fakr ad-Din Mosque (Masjid Fakhr ad-Din) is in Hamar Weyne, the oldest part of the city. It is the oldest mosque in Mogadishu and one of the five oldest in Africa. Its most striking feature is a conical minaret. That shape is rare on the East African coast, where most minarets are square or cylindrical.
The Arba'a Rukun Mosque is in the medieval district of Shangani and was built around the year 667 of the Hijra, which is 1268-1269 CE. Its value as a record is exceptional: the mihrab keeps an inscription from that same year giving the founder's name, Khusra ibn Mubarak al-Shirazi. Having the patron's name carved straight into the stone of the prayer niche is rare in buildings that old, and it makes the Arba'a Rukun a key piece for dating and understanding 13th-century Mogadishu.
The mention of al-Shirazi also points to a deeper debate among historians of the Swahili coast. Local traditions credit settlers from Shiraz, in Persia, with founding several of these cities. Archaeological and linguistic research over recent decades, however, stresses that Swahili civilisation was fundamentally African, and that local elites took on Persian and Arab genealogies as a sign of prestige and of belonging to the Islamic world of the Indian Ocean. Both stories live side by side in the stones of Shangani.
The arrival of the Portuguese in the Indian Ocean from 1498 broke the trading balance of the coast. Mogadishu was not razed like Kilwa or Mombasa, but the new maritime order, with Lisbon charging tolls on the monsoon routes, wore down the role of the Somali ports. The city entered a long period of decline in which its fortunes were tied to whichever powers controlled the sea.
In the 18th and 19th centuries, the southern Somali coast came under the influence of Oman and then of the Sultanate of Zanzibar. Zanzibar nominally ran the Banaadir ports (Mogadishu, Merca, Brava and Warsheikh) and collected customs duties through local governors. Real power, however, was split between those governors, the urban lineages of Hamar Weyne and Shangani, and the clan confederations of the interior, above all the Geledi Sultanate, which controlled the caravan trade of the Shabelle valley.
Italy arrived at the end of that process. From the 1890s it leased and then acquired the Banaadir ports during the colonial scramble for Africa, and in 1905 it took formal control of Mogadishu, which became the capital of Italian Somaliland. That status reshaped the city physically: avenues were laid out, and a monumental administrative centre, public buildings, the governor's palace, the harbour lighthouse and, between 1923 and 1928, the cathedral were built.
Mogadishu Cathedral was the most ambitious architectural gesture of the colonial period. Antonio Vandone designed it in the Norman style, taking Cefalù Cathedral in Sicily as his model. At 37 metres it was the tallest building in the capital, and when it opened it was the largest Christian cathedral in Africa. Standing next to the coral-stone old town, it was a statement of intent: two cities laid on top of each other that never fully merged.
The Second World War cut short Italy's colonial project in the Horn. British troops occupied Italian Somaliland in 1941 and ran the territory until 1950. That year Italy returned as administering power under a United Nations trusteeship, with a fixed ten-year deadline to lead the territory to independence.
On 1 July 1960, the Italian trust territory joined British Somaliland, which had become independent five days earlier, to form the Somali Republic, with Mogadishu as its capital. Hopes were enormous: a new state with a shared language and a strong national identity, on a continent that was decolonising at full speed. The independence movement had been led by the Somali Youth League, whose monument still stands in the city centre, as does the Daljirka Dahsoon, the obelisk to the unknown soldier.
The first decade of the republic was parliamentary and competitive, but also unstable, with growing political fragmentation. In October 1969, after President Abdirashid Ali Shermarke was assassinated, the army took power and General Mohamed Siad Barre set up a military regime that would rule for twenty-one years.
The Barre era left a deep and contradictory mark on Mogadishu. On one side there were mass literacy campaigns, and in 1972 Somali got an official Latin script; until then it had no standardised written form in general use. There were also public works, state industry and a rhetoric of national unity against “tribalism”. On the other side there was a one-party state, a personality cult, security services everywhere, repression of dissent, and a clan-based way of handling power that in practice contradicted everything the regime said in public.
The Ogaden War against Ethiopia (1977-1978), lost after Soviet support switched to Addis Ababa, marked the beginning of the end. The defeat, its economic cost, the arrival of hundreds of thousands of refugees and harsher repression fed armed insurgencies in the north and centre of the country throughout the 1980s. In January 1991, the militias of the United Somali Congress took Mogadishu and Siad Barre fled. There was no transition: the Somali state fell apart.
The fall of the regime did not lead to a new government but to a war between factions. Mogadishu was split by a “green line” separating the territories of the main warlords, with artillery fights in densely populated areas. The result, over years, was devastating: according to the heritage organisation Horn Heritage, since the late 1980s the war has damaged or destroyed around 50 % of all the buildings in the city. The historic districts of Hamar Weyne and Shangani were badly scarred, and there is still no systematic record of how far the destruction really went.
The famine that came with the collapse led to an international intervention. The UNOSOM mission and, from December 1992, the US-led Operation Restore Hope tried to secure humanitarian aid in a place with no state. Things came to a head on 3 and 4 October 1993 in the Battle of Mogadishu: two US helicopters were shot down and there were hours of urban fighting around the Bakara market. The episode, known around the world through the account “Black Hawk Down”, sped up the US withdrawal and, in 1995, the end of the UN mission. Somalia was left on its own.
Over the following decade, real power in the city was shared among militias, business people and neighbourhood Islamic courts, which handled justice and security where there was no state. In 2006, the Islamic Courts Union brought those structures together and took control of Mogadishu, imposing an order that much of the population welcomed with relief after fifteen years of anarchy. At the end of that year, an Ethiopian military intervention with international backing drove the courts out of the capital.
Al Shabaab, the most radical wing of the Islamic Courts Union, emerged from its break-up. It became a nationwide insurgency and in 2012 declared its affiliation with Al Qaeda. Al Shabaab controlled large parts of Mogadishu between 2007 and 2011, and it was during that time, in 2008, that it destroyed much of the 1928 cathedral: today only the outer walls and the large stone arches remain. The African Union mission AMISOM, deployed from 2007, and Somali forces managed to push the group out of control of the capital in August 2011.
Pushing Al Shabaab out of control of the capital in August 2011 began the longest period of rebuilding since 1991. Part of the diaspora came back, bringing money and drive. Turkey became the most visible international partner, with public works, a hospital, the airport, schools and a diplomatic presence. Hotels, shopping centres and residential towers went up. Between 2020 and 2025 more than 6,000 new buildings were put up in the city, one of the fastest rates of urban growth in the world, and in 2025 the urban area had around 3.26 million inhabitants.
That rebuilding goes on alongside a conflict that has not ended. Al Shabaab lost territorial control of Mogadishu but can still operate inside the city: car bombs, suicide attacks and armed assaults on hotels, restaurants, public buildings and the airport corridor. On 2 August 2024, a suicide bombing followed by an armed assault hit the Beach View restaurant on Lido beach, the most popular place to relax in the capital. A month later, locals were back on the beach.
The international security set-up has also changed. The ATMIS mission ended on 31 December 2024 and was replaced from 1 January 2025 by AUSSOM, the African Union Support and Stabilization Mission in Somalia, with an initial twelve-month mandate and an open debate over how to fund it. On 20 February 2025, Al Shabaab launched an offensive in the Shabelle valley with the stated goal of surrounding the capital and winning back the ground it lost in the government's 2022 offensive. In July that year it retook the towns of Sabiid and Anole, about 40 kilometres southwest of Mogadishu.
Meanwhile, heritage keeps disappearing in ways quieter than war. The colonial harbour lighthouse partly collapsed on 7 May 2023, killing four people. The tower of the Abdulaziz Mosque, the oldest surviving one in the city, was demolished in May 2013 as part of a foreign-funded “restoration” project. The Italian governor's palace was pulled down by the military regime and replaced by the Uruba hotel, which has also been destroyed. The National Museum, in the 1930s Garesa building, was rebuilt in 2019 and is the most serious institutional effort to preserve the country's material memory.
Mogadishu today is both things at once: a city of three million people rebuilding at remarkable speed, and the capital of a country that every foreign ministry in the world places at its highest alert level. Telling the first story without the second would be a lie; telling the second without the first would do an injustice to eight hundred years of history.