information:filtering, structural:expansion, quality:correction
Ancient history

The area comprising Somalia, Djibouti, the Red Sea coast of Eritrea and Sudan is considered the most likely location of the land known to the ancient Egyptians as Punt (or "Ta Netjeru", meaning god's land), whose first mention dates to the 25th century BCE.

Dʿmt was a kingdom located in Eritrea and northern Ethiopia, which existed during the 8th and 7th centuries BCE. With its capital probably at Yeha, the kingdom developed irrigation schemes, used plows, grew millet, and made iron tools and weapons. After the fall of Dʿmt in the 5th century BCE, the plateau came to be dominated by smaller successor kingdoms, until the rise of one of these kingdoms during the 1st century, the Aksumite Kingdom, which was able to reunite the area.

The Kingdom of Aksum (also known as the Aksumite Empire) was an ancient state located in the Eritrea and Ethiopian highlands, which thrived between the 1st and 7th centuries CE. A major player in the commerce between the Roman Empire and Ancient India, Aksum's rulers facilitated trade by minting their own currency. The state also established its hegemony over the declining Kingdom of Kush and regularly entered the politics of the kingdoms on the Arabian Peninsula, eventually extending its rule over the region with the conquest of the Himyarite Kingdom. Under Ezana (fl. 320–360), the kingdom of Aksum became the first major empire to adopt Christianity, and was named by Mani as one of the four great powers of his time, along with Persia, Rome and China.

Somalia was an important link in the Horn, connecting the region's commerce with the rest of the ancient world. Somali sailors and merchants were the main suppliers of frankincense, myrrh and spices, all of which were valuable luxuries to the Ancient Egyptians, Phoenicians, Mycenaeans, Babylonians and Romans. The Romans consequently began to refer to the region as Regio Aromatica. In the classical era, several flourishing Somali city-states such as Opone, Mosylon and Malao also competed with the Sabaeans, Parthians and Axumites for the rich Indo - Greco-Roman trade.

The birth of Islam opposite the Horn's Red Sea coast meant that local merchants and sailors living on the Arabian Peninsula gradually came under the influence of the new religion through their converted Arab Muslim trading partners. With the migration of Muslim families from the Islamic world to the Horn in the early centuries of Islam, and the peaceful conversion of the local population by Muslim scholars in the following centuries, the ancient city-states eventually transformed into Islamic Mogadishu, Berbera, Zeila, Barawa and Merka, which were part of the Barbara civilization. The city of Mogadishu came to be known as the "City of Islam" and controlled the East African gold trade for several centuries.