Somalia is in Africa. It occupies most of the Horn of Africa, the easternmost projection of the African mainland, and covers about 637,657 km² between Ethiopia, Kenya and Djibouti on land and the Gulf of Aden and the Indian Ocean at sea. Unlike Egypt or Turkey, no part of its territory lies across a continental boundary: the nearest piece of Asia, Yemen on the Arabian Peninsula, sits on the far side of the Gulf of Aden, roughly 260 km from the port of Berbera on Somalia's northern coast. The UN statistics office lists Somalia in Eastern Africa, and it is a member of the African Union. The question arises because Somalia is also a member of the Arab League and faces Arabia across a narrow sea.
The Gulf of Aden as the Line Between Africa and Arabia
Continental boundaries in this part of the world follow the sea. North of the Horn, the Red Sea separates Africa from the Arabian Peninsula, and at its southern end the Bab-el-Mandeb strait opens into the Gulf of Aden, with Djibouti and Eritrea on the African side and Yemen on the Asian side. The Gulf of Aden then runs east to the Arabian Sea, with Yemen along its northern shore and Somalia along its southern shore. Everything south of that water belongs to Africa, and Somalia's entire territory lies south of it.
Using the sea as the divide is an ancient habit. In the second century Ptolemy set the Africa–Asia boundary along the Red Sea and the Isthmus of Suez, and the Gulf of Aden simply carries the Red Sea on into the Indian Ocean. The only place where that convention leaves room for argument is at the northern end, where Egypt's Sinai Peninsula lies on the Asian side of the Suez Canal. At the southern end, around the Horn, there is no land on the far side of the line that belongs to an African country, and no Somali territory on the near side of it that belongs to Asia.
The gulf is a real geological seam, not just a line on a map. The Aden Ridge runs along its middle, and spreading at that ridge is pushing Africa and Arabia apart by about 15 mm a year. The Horn of Africa itself sits largely on the Somali Plate, a block of crust that is slowly separating from the rest of Africa along the East African Rift. That process is measured in millions of years; for now, and on every map, Somalia is joined to the African mainland by unbroken land through Ethiopia and Kenya.
How far Somalia is from Yemen
The gulf narrows towards the west, but Somalia's coast never comes as close to Arabia as Djibouti's does at the Bab-el-Mandeb. Measured from the coordinates of the ports, Berbera on the northern coast lies roughly 260 km due south of Aden, and Bosaso lies roughly 360 km south of Mukalla. The closest Asian-administered land is actually an island: Socotra, which belongs to Yemen, lies 232 km east of Cape Guardafui, the tip of the Horn, and the smaller Yemeni island of Abd al Kuri lies between them in the Guardafui Channel.
Socotra makes a useful mirror image of the Somalia question. It is governed by an Asian country, yet Wikipedia describes it as geographically African, a continental fragment linked to the Somali Plate. Its plants share traits with species in Somalia more than 1,000 km away. Political ties and geography, in other words, can point in different directions on both sides of the gulf; our guide to the Gulf of Aden covers the waterway itself.
637,657 km² From Ras Hafun to the Kenyan Border
Somalia is often described as shaped like a tilted figure seven. Its coastline runs for more than 3,333 km, the longest of any country on mainland Africa: west to east along the Gulf of Aden, round the Horn, then south-west along the Indian Ocean to the Kenyan border. At the corner of that seven are two headlands. Cape Guardafui, known in Somali as Raas Caseyr, forms the apex of the Horn, while Ras Hafun, a promontory further south joined to the mainland by a 20 km sand spit, is the easternmost point of mainland Africa.
The land behind that coast is African in every physical sense. In the north, a narrow scrub plain called the Guban follows the Gulf of Aden, backed by escarpments of the Ogo highlands that average about 1,800 m south of Berbera. The highest summit, Mount Shimbiris near Erigavo, reaches 2,460 m (8,071 ft) according to satellite radar data, although the older figure of 2,416 m is still widely quoted. South of the mountains lie the Haud and the Mudug Plain, dry plateaus that merge into the Somali Plateau of south-eastern Ethiopia. The country's only two permanent rivers, the Jubba and the Shabeelle, rise in the Ethiopian Highlands and cross the south; the Jubba reaches the sea at Kismayo, while the Shabeelle turns parallel to the coast near Balcad and fades into swamps and sand near Jilib.
The capital, Mogadishu, lies on the Indian Ocean in the Banaadir region, which is administered as a municipality rather than a federal member state. Somalia's population is estimated at more than 19 million, of whom around 85% are ethnic Somalis, and the overwhelming majority are Sunni Muslims. Somali is the official and national language; Arabic is recognised as a second language.
Somaliland and the north-west
Any account of Somalia's extent has to mention Somaliland. The former British Somaliland protectorate became independent as the State of Somaliland on 26 June 1960 and five days later united with the former Italian-administered trust territory to form the Somali Republic. In 1991, after a war against the government of Siad Barre, northern leaders meeting at a conference in Burao declared Somaliland independent. Somaliland claims about 176,120 km² along the Gulf of Aden, including Berbera and the border with Djibouti, and has been governed by its own elected governments since then. On 26 December 2025 Israel became the first UN member state to recognise it formally. Somalia does not recognise the separation and regards the area as part of its federal territory, and since the Las Anod conflict that began in 2022, part of the eastern area Somaliland claims has been run by the SSC-Khatumo administration, which favours union with Somalia. Whichever government a reader considers sovereign there, the land itself is in Africa.
Ethiopia, Kenya and Djibouti on Land, Yemen Across the Water
Every one of Somalia's land neighbours is African. The longest frontier, about 1,500 km, is with Ethiopia to the west. It was shaped by British and Italian colonial agreements with the Ethiopian empire, including an 1897 treaty under which Britain ceded Somali grazing land to Emperor Menelik, and much of it has never been fully delimited beyond a provisional line. Britain handed the Haud and the Ogaden back to Ethiopia after the Second World War, and the area's status led to the Ogaden War of 1977 to 1978.
Kenya lies to the south-west, and the two countries' dispute over their sea boundary went to the International Court of Justice, which delivered its judgment in Somalia v. Kenya on 12 October 2021. Djibouti borders the north-west, a short frontier in the area administered by Somaliland. At sea, Somalia faces Yemen across the Gulf of Aden and the Guardafui Channel, and the Seychelles far across the Somali Sea to the south-east. Each of these frontiers gets its own section in our piece on the countries that border Somalia.
Eastern Africa for the UN, Member of Both the African Union and the Arab League
The UN Statistics Division geoscheme places Somalia in Eastern Africa, part of Sub-Saharan Africa, alongside Ethiopia, Kenya, Djibouti and Eritrea. Somalia's memberships mostly follow that geography:
- African Union: Somalia is a member, and its president Siad Barre chaired the AU's predecessor, the Organisation of African Unity, in the year Somalia joined the Arab League.
- Intergovernmental Authority on Development (IGAD), the regional bloc of the Horn and East Africa.
- East African Community: Somalia applied in March 2012, signed the treaty of accession in Kampala on 15 December 2023 and became the bloc's eighth member on 4 March 2024.
- Confederation of African Football: the Somali Football Federation, founded in 1951, joined FIFA in 1962 and CAF in 1968.
The ties that make people wonder about Asia are cultural and religious. Somalia joined the Arab League on 14 February 1974, fourteen years after independence, under Barre's government, which emphasised links with the Arab world. Its football federation joined the Union of Arab Football Associations in the same year. Somalia was also a founding member of the Organisation of Islamic Cooperation in 1969. None of these memberships changes the map: the Arab League's members include Egypt, Sudan, Libya, Tunisia, Algeria, Morocco and Mauritania, all of them African countries too.
The trading links are old as well. The highlands of the north-east grow the Boswellia and Commiphora trees that yield frankincense and myrrh, for which the Somali coast has been known since ancient times, and Berbera was the leading trading port of the Somali coast in the early modern period. Those connections run across the water, not over a continental boundary. Somalia is African by position, by geology, by its land borders and by the UN's own classification; its Arab League seat reflects history and faith. To see how it fits into the wider peninsula with Ethiopia, Eritrea and Djibouti, read our guide to the Horn of Africa.
