The history of Somaliland, a country in the eastern Horn of Africa bordered by the Gulf of Aden, and the East African land mass, begins with human habitation tens of thousands of years ago. It includes the civilizations of Punt, the Ottomans, and colonial influences from Europe and the Middle East.

Islam was introduced to the area early on by the first Muslims of Mecca fleeing prosecution during the first Hejira with Masjid al-Qiblatayn in Zeila being built before the Qiblah towards Mecca. It is one of the oldest mosques in Africa. In the late 9th century, Al-Yaqubi wrote that Muslims were living along the northern Somali seaboard. Various Somali Muslim kingdoms were established in the area in the early Islamic period. In the 14th to 15th centuries, the Zeila-based Adal Sultanate battled the Ethiopian Empire, at one point bringing the three-quarters of Christian Abyssinia under the control of the Muslim empire under military leader Imam Ahmad ibn Ibrahim al-Ghazi

In the early modern period, successor states to the Adal Sultanate began to flourish in the region, including the Isaaq Sultanate led by the Guled dynasty. The modern Guled Dynasty of the Isaaq Sultanate was established in the middle of the 18th century by Sultan Guled. The Sultanate had a robust economy and trade was significant at the main port of Berbera but also eastwards along the coast, with the Isaaq controlling various trade routes into the port cities.

In the late 19th century, the United Kingdom signed agreements with the Gadabuursi, Issa, Habr Awal, Garhajis, Habr Je'lo and Warsangeli clans establishing the Somaliland Protectorate, which was formally granted independence by the United Kingdom as the State of Somaliland on 26 June 1960. Five days later, on 1 July 1960, the State of Somaliland voluntarily united with the Trust Territory of Somalia (the former Italian Somalia) to form the Somali Republic.

The union of the two states proved problematic early on, and in response to the harsh policies enacted by Somalia's Barre regime against the main clan family in Somaliland, the Isaaq, shortly after the conclusion of the disastrous Ogaden War, a group of Isaaq businesspeople, students, former civil servants and former politicians founded the Somali National Movement in London in 1981, leading to a 10 year war of independence that concluded in the declaration of Somaliland's independence in 1991. (Full article...) (Full article...)