The Somali people (Somali: Soomaalida 𐒈𐒝𐒑𐒛𐒐𐒘𐒆𐒖) are a Cushitic ethnic group native to the Horn of Africa who share a common ancestry, culture and history. The East Cushitic Somali language is the shared mother tongue of ethnic Somalis, which is part of the Cushitic branch of the Afroasiatic language family, and are predominantly Sunni Muslim. They form one of the largest ethnic groups on the African continent, and cover one of the most expansive landmasses by a single ethnic group in Africa.
 According to most scholars, the ancient Land of Punt and its native inhabitants formed part of the ethnogenesis of the Somali people. This ancient historical kingdom is where a great portion of their cultural traditions and ancestry are said to derive from. Somalis share many historical and cultural traits with other Cushitic peoples, especially with Lowland East Cushitic people, specifically the Afar and the Saho.
 Ethnic Somalis are principally concentrated in Somalia (around 17.6 million), Somaliland (5.7 million), Ethiopia (4.6 million),  Kenya (2.8 million), and Djibouti (534,000). Somali diasporas are also found in parts of the Middle East, North America, Western Europe, African Great Lakes region, Southern Africa and Oceania.
 Samaale, the oldest common ancestor of several Somali clans, is generally regarded as the source of the ethnonym Somali. One other theory is that the name is held to be derived from the words soo and maal, which together mean "go and milk". This interpretation differs depending on region with northern Somalis imply it refers to go and milk in regards to the camel's milk,  southern Somalis use the transliteration "sa' maal" which refers to cow's milk. This is a reference to the ubiquitous pastoralism of the Somali people. Another plausible etymology proposes that the term Somali is derived from the Arabic for "wealthy" (zāwamāl), again referring to Somali riches in livestock.
 Alternatively, the ethnonym Somali is believed to have been derived from the Automoli (Asmach), a group of warriors from ancient Egypt described by Herodotus, who were likely of Meshwesh origin according to Flinders Petrie. Asmach is thought to have been their Egyptian name, with Automoli being a Greek derivative of the Hebrew word S’mali (meaning "on the left hand side").
 A Tang Chinese document from the 9th century CE referred to the northern Somalia coast — which was then part of a broader region in Northeast Africa known as Barbara, in reference to the area's Barbars (Cushitic) inhabitants — as Po-pa-li. 
 The first clear written reference of the sobriquet Somali dates back to the early 15th century CE during the reign of Ethiopian Emperor Yeshaq I who had one of his court officials compose a hymn celebrating a military victory over the Sultanate of Ifat. Simur was also an ancient Harari alias for the Somali people. Somalis overwhelmingly prefer the demonym Somali over the incorrect Somalian since the former is an endonym, while the latter is an exonym with double suffixes. The hypernym of the term Somali from a geopolitical sense is Horner and from an ethnic sense, it is Cushite.
 The origin of the Somali people which was previously theorized to have been from Southern Ethiopia since 1000 BC or from the Arabian peninsula in the eleventh century has now been overturned by newer archeological and linguistic studies which puts the original homeland of the Somali people in Somaliland, which concludes that the Somalis are the indigenous inhabitants of the Horn of Africa for the last 7000 years.
 Ancient rock paintings, which date back 5000 years (estimated), have been found in Somaliland. These engravings depict early life in the territory. The most famous of these is the Laas Geel complex. It contains some of the earliest known rock art on the African continent and features many elaborate pastoralist sketches of animal and human figures. In other places, such as the Dhambalin region, a depiction of a man on a horse is postulated as being one of the earliest known examples of a mounted huntsman.
 Inscriptions have been found beneath many of the rock paintings, but archaeologists have so far been unable to decipher this form of ancient writing. During the Stone Age, the Doian and Hargeisan cultures flourished here with their respective industries and factories.
 The oldest evidence of burial customs in the Horn of Africa comes from cemeteries in Somalia dating back to 4th millennium BC. The stone implements from the Jalelo site in Somalia are said to be the most important link in evidence of the universality in palaeolithic times between the East and the West.
 In antiquity, the ancestors of the Somali people were an important link in the Horn of Africa 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, items which were considered valuable luxuries by the Ancient Egyptians, Phoenicians, Mycenaeans and Babylonians.
 According to most scholars, the ancient Land of Punt and its native inhabitants formed part of the ethnogenesis of the Somali people. The ancient Puntites were a nation of people that had close relations with Pharaonic Egypt during the times of Pharaoh Sahure and Queen Hatshepsut. The pyramidal structures, temples and ancient houses of dressed stone littered around Somalia may  date from this period.
 In classical antiquity, the Macrobians, who may have been ancestral to the Automoli or ancient Somalis, established a powerful tribal kingdom that ruled large parts of modern Somalia. They were reputed for their longevity and wealth, and were said to be the "tallest and handsomest of all men". The Macrobians were warrior herders and seafarers. According to Herodotus' account, the Achaemenid emperor Cambyses II, upon his conquest of Egypt in 525 BCE, sent ambassadors to Macrobia, bringing luxury gifts for the Macrobian king to entice his submission. The Macrobian ruler, who was elected based on his stature and beauty, replied instead with a challenge for his Persian counterpart in the form of an unstrung bow: if the Persians could manage to draw it, they would have the right to invade his country; but until then, they should thank the gods that the Macrobians never decided to invade their empire. The Macrobians were a regional power reputed for their advanced architecture and gold wealth, which was so plentiful that they shackled their prisoners in golden chains.
 Several ancient city-states, such as Opone, Essina, Sarapion, Nikon, Malao, Damo and Mosylon near Cape Guardafui, which competed with the Sabaeans, Parthians and Axumites for the wealthy Indo-Greco-Roman trade, also flourished in Somalia.
 Islam was introduced to the area early on by the first Muslims of Mecca fleeing prosecution during the first Hejira with Masjid al-Qiblatayn being built before the Qiblah towards Mecca. The town of Zeila's two-mihrab Masjid al-Qiblatayn dates to the 7th century, and is the oldest mosque in Africa.
 Consequently the Somalis were some of the earliest non-Arabs that converted to Islam. The peaceful conversion of the Somali population by Somali Muslim scholars in the following centuries, the ancient city-states eventually transformed into Islamic Mogadishu, Berbera, Zeila, Barawa, Hafun and Merca, which were part of the Berberi civilization. The city of Mogadishu came to be known as the City of Islam, and controlled the East African gold trade for several centuries.
 The Sultanate of Ifat, led by the Walashma dynasty with its capital at Zeila, ruled over parts of what is now eastern Ethiopia, Djibouti and Somaliland. The historian al-Umari records that Ifat was situated near the Red Sea coast, and states its size as 15 days travel by 20 days travel. Its army numbered 15,000 horsemen and 20,000 foot soldiers. Al-Umari also credits Ifat with seven "mother cities": Belqulzar, Kuljura, Shimi, Shewa, Adal, Jamme and Laboo.
 In the Middle Ages, several powerful Somali empires dominated the regional trade including the Ajuran Sultanate, which excelled in hydraulic engineering and fortress building, the Adal Sultanate, whose general Ahmad ibn Ibrahim al-Ghazi (Ahmed Gurey) was the first commander to use cannon warfare on the continent during Adal's conquest of the Ethiopian Empire, and the Sultanate of the Geledi, whose military dominance forced governors of the Omani empire north of the city of Lamu to pay tribute to the Somali Sultan Ahmed Yusuf. The Harla, an early group who inhabited parts of Somalia, Tchertcher and other areas in the Horn, also erected various tumuli. These masons are believed to have been ancestral to the Somalis ("proto-Somali").
 Berbera was the most important port in the Horn of Africa between the 18th–19th centuries. For centuries, Berbera had extensive trade relations with several historic ports in the Arabian Peninsula. Additionally, the Somali and Ethiopian interiors were very dependent on Berbera for trade, where most of the goods for export arrived from. During the 1833 trading season, the port town swelled to over 70,000 people, and upwards of 6,000 camels laden with goods arrived from the interior within a single day. Berbera was the main marketplace in the entire Somali seaboard for various goods procured from the interior, such as livestock, coffee, frankincense, myrrh, acacia gum, saffron, feathers, ghee, hide (skin), gold and ivory. Historically, the port of Berbera was controlled indigenously between the mercantile Reer Ahmed Nur and Reer Yunis Nuh sub-clans of the Habar Awal.
 According to a trade journal published in 1856, Berbera was described as “the freest port in the world, and the most important trading place on the whole Arabian Gulf.”:
 “The only seaports of importance on this coast are Feyla [Zeila] and Berbera; the former is an Arabian colony, dependent of Mocha, but Berbera is independent of any foreign power. It is, without having the name, the freest port in the world, and the most important trading place on the whole Arabian Gulf. From the beginning of November to the end of April, a large fair assembles in Berbera, and caravans of 6,000 camels at a time come from the interior loaded with coffee, (considered superior to Mocha in Bombay), gum, ivory, hides, skins, grain, cattle, and sour milk, the substitute of fermented drinks in these regions; also much cattle is brought there for the Aden market.” As a tributary of Mocha, which in turn was part of the Ottoman possessions in Western Arabia, the port of Zeila had seen several men placed as governors over the years. The Ottomans based in Yemen held nominal authority of Zeila when Sharmarke Ali Saleh, who was a successful and ambitious Somali merchant, purchased the rights of the town from the Ottoman governor of Mocha and Hodeida.
 Allee Shurmalkee [Ali Sharmarke] has since my visit either seized or purchased this town, and hoisted independent colours upon its walls; but as I know little or nothing save the mere fact of its possession by that Soumaulee chief, and as this change occurred whilst I was in Abyssinia, I shall not say anything more upon the subject. However, the previous governor was not eager to relinquish his control of Zeila. Hence in 1841, Sharmarke chartered two dhows (ships) along with fifty Somali Matchlock men and two cannons to target Zeila and depose its Arab Governor, Syed Mohammed Al Barr. Sharmarke initially directed his cannons at the city walls which frightened Al Barr's followers and caused them to abandon their posts and succeeded Al Barr as the ruler of Zeila. Sharmarke's governorship had an instant effect on the city, as he maneuvered to monopolize as much of the regional trade as possible, with his sights set as far as Harar and the Ogaden.
 In 1845, Sharmarke deployed a few matchlock men to wrest control of neighboring Berbera from that town's then feuding Somali local authorities. Sharmarke's influence was not limited to the Somali coast as he had allies and influence in the interior of the Somali country, the Danakil coast and even further afield in Abyssinia. Among his allies were the Kings of Shewa. When there was tension between the Amir of Harar Abu Bakr II ibn `Abd al-Munan and Sharmarke, as a result of the Amir arresting one of his agents in Harar, Sharmarke persuaded the son of Sahle Selassie, ruler of Shewa, to imprison on his behalf about 300 citizens of Harar then resident in Shewa, for a length of two years.
 In the late 19th century, after the Berlin Conference had ended, the Scramble for Africa reached the Horn of Africa. Increasing foreign influence in the region culminated in the first darawiish becoming the Ali Gheri clan the Drawiish had leaders such as Mohammed Abdullah Hassan, Haji Sudi and Sultan Nur Ahmed Aman, who sought a state in the Nugaal and began one of the longest African conflicts in history. The news of the incident that sparked the 21 year long Dervish rebellion, according to the consul-general James Hayes Sadler, was spread or as he claimed was concocted by Sultan Nur of the Habr Yunis. The incident in question was that of a group of Somali children that were converted to Christianity and adopted by the French Catholic Mission at Berbera in 1899. Whether Sultan Nur experienced the incident first hand or whether he was told of it is not clear but what is known is that he propagated the incident in June 1899, precipitating the religious rebellion of the Dervishes. The Dervish movement successfully stymied British forces four times and forced them to retreat to the coastal region. As a result of its successes against the British, the Dervish movement received support from the Ottomans and Germans. The Ottoman government also named Hassan Emir of the Somali nation, and the German government promised to officially recognise any territories the Dervishes were to acquire. After a quarter of a century of military successes against the British, the Dervishes were finally defeated by Britain in 1920 in part due to the successful deployment of the newly-formed Royal Air Force by the British government. 
 Majeerteen Sultanate was founded in the early-18th century. It rose to prominence in the following century, under the reign of the resourceful Boqor (King) Osman Mahamuud. His Kingdom controlled Bari Karkaar, Nugaaal, and also central Somalia in the 19th and early 20th centuries. The Majeerteen Sultanate maintained a robust trading network, entered into treaties with foreign powers, and exerted strong centralized authority on the domestic front.
 The Majeerteen Sultanate was nearly destroyed in the late-1800s by a power struggle between Boqor (King) Osman Mahamuud of the Majeerteen Sultanate and his ambitious cousin, Yusuf Ali Kenadid who founded a separate Kingdom, Sultanate of Hobyo in 1878. Initially Kenadid wanted to seize control of the neighbouring Majeerteen Sultanate, ruled by his cousin Mahamuud. However, he was unsuccessful in this endeavour, and was eventually forced into exile in Yemen. Both sultanates also maintained written records of their activities, which still exist.
 In late 1888, Sultan Yusuf Ali Kenadid entered into a treaty with the Italian government, making his Sultanate of Hobyo an Italian protectorate known as Italian Somalia. His rival Boqor Osman Mahamuud was to sign a similar agreement vis-a-vis his own Majeerteen Sultanate the following year. In signing the agreements, both rulers also hoped to exploit the rival objectives of the European imperial powers so as to more effectively assure the continued independence of their territories. The Italians, for their part, were interested in the territories mainly because of its ports specifically Port of Bosaso which could grant them access to the strategically important Suez Canal and the Gulf of Aden. The terms of each treaty specified that Italy was to steer clear of any interference in the Sultanates' respective administrations. In return for Italian arms and an annual subsidy, the Sultans conceded to a minimum of oversight and economic concessions. The Italians also agreed to dispatch a few ambassadors to promote both the Sultanates' and their own interests. The new protectorates were thereafter managed by Vincenzo Filonardi through a chartered company. An Anglo-Italian border protocol was later signed on 5 May 1894, followed by an agreement in 1906 between Cavalier Pestalozza and General Swaine acknowledging that Baran fell under the Majeerteen Sultanate's administration. With the gradual extension into northern Somalia of Italian colonial rule, both Kingdoms were eventually annexed in the early 20th century. However, unlike the southern territories, the northern sultanates were not subject to direct rule due to the earlier treaties they had signed with the Italians.
 Following World War II, Britain retained control of both British Somaliland and Italian Somalia as protectorates. In 1945, during the Potsdam Conference, the United Nations granted Italy trusteeship of Italian Somalia, but only under close supervision and on the condition — first proposed by the Somali Youth League (SYL) and other nascent Somali political organizations, such as Hizbia Digil Mirifle Somali (HDMS) and the Somali National League (SNL) — that Somalia achieve independence within ten years. British Somalia remained a protectorate of Britain until 1960.
 To the extent that Italy held the territory by UN mandate, the trusteeship provisions gave the Somalis the opportunity to gain experience in political education and self-government. These were advantages that British Somaliland, which was to be incorporated into the new Somali Republic state, did not have. Although in the 1950s British colonial officials attempted, through various administrative development efforts, to make up for past neglect, the protectorate stagnated. The disparity between the two territories in economic development and political experience would cause serious difficulties when it came time to integrate the two parts.
 Meanwhile, in 1948, under pressure from their World War II allies and to the dismay of the Somalis, the British ceded official control of the Haud (an important Somali grazing area that was brought under British protection via treaties with the Somalis in 1884 and 1886) and the Ogaden to Ethiopia, based on a treaty they signed in 1897 in which the British ceded Somali territory to the Ethiopian Emperor Menelik in exchange for his help against raids by Somali clans. Britain included the proviso that the Somali nomads would retain their autonomy, but Ethiopia immediately claimed sovereignty over them. This prompted an unsuccessful bid by Britain in 1956 to purchase back the Somali lands it had turned over. The British government also granted administration of the almost exclusively Somali-inhabited Northern Frontier District (NFD) to the Kenyan government despite an informal plebiscite demonstrating the overwhelming desire of the region's population to join the newly formed Somali Republic.
 A referendum was held in neighboring Djibouti (then known as French Somaliland) in 1958, on the eve of Somalia's independence in 1960, to decide whether or not to join the Somali Republic or to remain with France. The referendum turned out in favour of a continued association with France, largely due to a combined yes vote by the sizable Afar ethnic group and resident Europeans. There was also widespread vote rigging, with the French expelling thousands of Somalis before the referendum reached the polls. The majority of those who voted no were Somalis who were strongly in favour of joining a united Somalia, as had been proposed by Mahmoud Harbi, Vice President of the Government Council. Harbi was killed in a plane crash two years later. Djibouti finally gained its independence from France in 1977, and Hassan Gouled Aptidon, a Somali who had campaigned for a yes vote in the referendum of 1958, eventually wound up as Djibouti's first president (1977–1991).
 British Somaliland became independent on 26 June 1960 as the State of Somaliland, and the Trust Territory of Somalia (the former Italian Somalia) followed suit five days later. On 1 July 1960, the two territories united to form the Somali Republic, albeit within boundaries drawn up by Italy and Britain. A government was formed by Abdullahi Issa Mohamud and Muhammad Haji Ibrahim Egal other members of the trusteeship and protectorate governments, with Haji Bashir Ismail Yusuf as president of the Somali National Assembly, Aden Abdullah Osman Daar as the president of the Somali Republic and Abdirashid Ali Shermarke as Prime Minister (later to become president from 1967 to 1969). On 20 July 1961 and through a popular referendum, the people of Somalia ratified a new constitution, which was first drafted in 1960. The constitution was rejected by the people of Somaliland. In 1967, Muhammad Haji Ibrahim Egal became Prime Minister, a position to which he was appointed by Shermarke.
 On 15 October 1969, while paying a visit to the northern town of Las Anod, Somalia's then President Abdirashid Ali Shermarke was shot dead by one of his own bodyguards. His assassination was quickly followed by a military coup d'état on 21 October 1969 (the day after his funeral), in which the Somali Army seized power without encountering armed opposition — essentially a bloodless takeover. The putsch was spearheaded by Major General Mohamed Siad Barre, who at the time commanded the army.
 Alongside Barre, the Supreme Revolutionary Council (SRC) that assumed power after President Sharmarke's assassination was led by Lieutenant Colonel Salaad Gabeyre Kediye and Chief of Police Jama Korshel. The SRC subsequently renamed the country the Somali Democratic Republic, dissolved the parliament and the Supreme Court, and suspended the constitution.
 The revolutionary army established large-scale public works programs and successfully implemented an urban and rural literacy campaign, which helped dramatically increase the literacy rate. In addition to a nationalization program of industry and land, the new regime's foreign policy placed an emphasis on Somalia's traditional and religious links with the Arab world, eventually joining the Arab League (AL) in 1974. That same year, Barre also served as chairman of the Organization of African Unity (OAU), the predecessor of the African Union (AU).
 Somalis are ethnically of Cushitic ancestry, but have genealogical traditions of descent from various patriarchs associated with the spread of Islam. Being one tribe, they are segmented into various clan groupings, which are important kinship units that play a central part in Somali culture and politics. Clan families are patrilineal, and are divided into clans, primary lineages or subclans, and dia-paying kinship groups. The lineage terms qabiil, qolo, jilib and reer are often interchangeably used to indicate the different segmentation levels. The clan represents the highest kinship level. It owns territorial properties and is typically led by a clan-head or Sultan. Primary lineages are immediately descended from the clans, and are exogamous political units with no formally installed leader. They comprise the segmentation level that an individual usually indicates he or she belongs to, with their founding patriarch reckoned to between six and ten generations.
 The five major clan families are the traditionally nomadic pastoralist Dir, Isaaq, Darod, Hawiye and the sedentary agropastoralist Rahanweyn. Minor Somali clans include Benadiri.
 The Dir, Hawiye, Gardere (Gaalje'el, Degodia, Garre), Hawadle and Ajuran trace agnatic origins to the patriarch Samaale. Sheikh Darod is asserted to have married a woman from the Dir (while some accounts say Hawiye), thus establishing matrilateral ties with the Samaale family. The Darod have separate paternal traditions of descent through Abdirahman bin Isma'il al-Jabarti (Sheikh Darod), who is said to have Arabian Banu Hashim origins through Aqiil Abu Talib ibn Abd al-Muttalib arrived at a later date from the Arabian peninsula, in the 10th or 11th centuries and the Isaaq clan traces paternal descent to the Islamic leader Sheikh Isaaq Bin Ahmed Al Hashimi (Sheikh Isaaq), however contemporary genetic studies indicate that none of these clans possess any noticeable Arab ancestry. The Rahanweyn or Sab trace their stirp to the patriarch Sab. Both Samaale and Sab are supposed to have ultimately descended from a common lineage originating in the Arabian peninsula. These traditions of descent from elite Arab forefathers, who settled on the littoral, are debated, although they are based on early Arab documents and northern oral folklore.
 A comprehensive genealogy of Somali clans can be found in Abbink (2009), providing detailed family trees and historical background information.
 The tombs of the founders of the Darod, Dir and Isaaq major clans, as well as the Abgaal subclan of the Hawiye are all located in northern Somalia. Tradition holds this general area as an ancestral homeland of the Somali people.
 The traditional political unit among the Somali people has been kinships. Dia-paying groups are groupings of a few small lineages, each consisting of a few hundred to a few thousand members. They trace their foundation to between four and eight generations. Members are socially contracted to support each other in jural and political duties, including paying or receiving dia or blood compensation (mag in Somali). Compensation is obligatory in regards to actions committed by or against a dia-paying group, including blood-compensation in the event of damage, injury or death.
 Within traditional Somali society (as in other ethnic groups of the Horn of Africa and the wider region), there has been social stratification. According to the historian Donald Levine, these comprised high-ranking clans, low-ranking clans, caste groups, and slaves. This rigid hierarchy and concepts of lineal purity contrast with the relative egalitarianism in clan leadership and political control.
 Nobles constituted the upper tier and were known as bilis. They consist of individuals of ethnic Somali ancestral origin, and have been endogamous.
 The lower tier was designated as Sab, and was distinguished by its heterogeneous constitution and agropastoral lifestyle as well as some linguistic and cultural differences. A third Somali caste strata was made up of artisanal groups, which were endogamous and hereditary. Among the caste groups, the Midgan were traditionally hunters and circumcision performers. The Tumal (also spelled Tomal) were smiths and leatherworkers, and the Yibir (also spelled Yebir) were the tanners and magicians.
 According to the anthropologist Virginia Luling, the artisanal caste groups of the north closely resembled their higher caste kinsmen, being generally Caucasoid like other ethnic Somalis. Although ethnically indistinguishable from each other, state Mohamed Eno and Abdi Kusow, upper castes have stigmatized the lower ones.
 Outside of the Somali caste system were slaves of Bantu origin and physiognomy. Their distinct physical features and occupations differentiated them from Somalis and positioned them as inferior within the social hierarchy.
 Among Somali clans, in order to strengthen alliance ties, marriage is often to another ethnic Somali from a different clan. According to I. M. Lewis, of 89 marriages initiated by men of the Dhulbahante clan, 55 (62%) were therefore with women of Dhulbahante subclans other than those of their husbands; 30 (33.7%) were with women of adjacent clans of other clan families (Isaaq, 28; Hawiye, 3); and 3 (4.3%) were with women of other clans of the Darod clan family (Majerteen 2, Ogaden 1).
 Such exogamy is always followed by the dia-paying group and usually adhered to by the primary lineage, whereas marriage to lineal kin falls within the prohibited range. These traditional strictures against consanguineous marriage ruled out the patrilateral first cousin marriages that are favored by Arab Bedouins and specially approved by Islam. These marriages were practiced to a limited degree by certain northern Somali subclans. In areas inhabited by diverse clans, such as the southern Mogadishu area, endogamous marriages also served as a means of ensuring clan solidarity in uncertain socio-political circumstances. This inclination was further spurred on by intensified contact with Arab society in the Gulf, wherein first cousin marriage was preferred. Although politically expedient, such endogamous marriage created tension with the traditional principles within Somali culture.
 In 1975, the most prominent government reforms regarding family law in a Muslim country were set in motion in the Somali Democratic Republic, which put women and men, including husbands and wives, on complete equal footing. The 1975 Somali Family Law gave men and women equal division of property between the husband and wife upon divorce and the exclusive right to control by each spouse over his or her personal property.
 FGM is almost universal in Somalia, and many women undergo infibulation, the most extreme form of female genital mutilation. According to a 2005 WHO estimate, about 97.9% of Somalia's women and girls underwent FGM. This was at the time the world's highest prevalence rate of the procedure.
 According to data from the Pew Research Center, the creed breakdown of Muslims in the Somali-majority Djibouti is as follows: 77% adhere to Sunnism, 8% are non-denominational Muslim, 2% are Shia and 13% declined to answer, and a further report inclusive of Somali Region stipulating 2% adherence to a minority sect (e.g. Ibadism, Quranism etc.). In the neighboring country of Somalia, 99.8% of the population is Muslim according to the Pew Research Center. The majority belong to the Sunni branch of Islam and the Shafi'i school of Islamic jurisprudence. Sufism, the mystical sect of Islam, is also well established, with many local jama'a (zawiya) or congregations of the various tariiqa or Sufi orders. The constitution of Somalia likewise defines Islam as the state religion of the Federal Republic of Somalia, and Islamic sharia law as the basic source for national legislation. It also stipulates that no law that is inconsistent with the basic tenets of Shari'a can be enacted.
There are some nobles who believe with great pride that they are of Arabian ancestry, and trace their stirp to Muhammad's lineage of Quraysh and those of his companions. Although they do not consider themselves culturally Arabs, except for the shared religion, their presumed noble Arabian origins genealogically unite them. The purpose behind claiming genealogical traditions of descent from the Arabian Peninsula is used to reinforce one's lineage and the various associated patriarchs with the spread of Islam.
 The Somali language (Af-Soomaali) is a member of the Cushitic branch of the Afroasiatic family. Its nearest relatives are the Afar and Saho languages. Somali is the best documented of the Cushitic languages, with academic studies of it dating from before 1900.
 The exact number of speakers of Somali is unknown. One source estimates that there are 7.78 million speakers of Somali within Somalia and Somalia themselves and 12.65 million speakers globally. The Somali language is spoken by ethnic Somalis in Greater Somalia and the Somali diaspora.
 Somali dialects are divided into three main groups: Northern, Benaadir, and Maay. Northern Somali (or Northern-Central Somali) forms the basis for Standard Somali. Benaadir (also known as Coastal Somali) is spoken on the Benadir coast from Adale to south of Merca, including Mogadishu, as well as in the immediate hinterland. The coastal dialects have additional phonemes which do not exist in Standard Somali. Maay is principally spoken by the Digil and Mirifle (Rahanweyn) clans in the southwestern areas of Somalia.
 A number of writing systems have been used over the years for transcribing the Somali language. Of these, the Somali Latin alphabet is the most widely used, and has been the official writing script in Somalia since the government of former President of Somalia Mohamed Siad Barre formally introduced it in October 1972. The script was developed by the Somali linguist Shire Jama Ahmed specifically for the Somali language. It uses all letters of the Latin alphabet, except p, v, and z. Besides the Latin script, other orthographies that have been used for centuries for writing Somali include the long-established Arabic script and Wadaad writing. Other writing systems developed in the twentieth century include the Osmanya, Borama and Kaddare scripts, which were invented by Osman Yusuf Kenadid, Abdurahman Sheikh Nuur and Hussein Sheikh Ahmed Kaddare, respectively.
 In addition to Somali, Arabic, which is also an Afro-Asiatic tongue, is an official national language in Somalia, Somalia and Djibouti. Many Somalis speak it due to centuries-old ties with the Arab world, the far-reaching influence of the Arabic media, and religious education. Somalia and Djibouti are also both members of the Arab League.
 The culture of Somalia is an amalgamation of traditions developed independently and through interaction with neighbouring and far away civilizations, such as other parts of Northeast Africa, the Arabian Peninsula, India and Southeast Asia.
 The textile-making communities in Somalia are a continuation of an ancient textile industry, as is the culture of wood carving, pottery and monumental architecture that dominates Somali interiors and landscapes. The cultural diffusion of Somali commercial enterprise can be detected in its cuisine, which contains Southeast Asian influences. Due to the Somali people's passionate love for and facility with poetry, Somalia has often been referred to by scholars as a "Nation of Poets" and a "Nation of Bards" including, among others, the Canadian novelist Margaret Laurence.
 According to Canadian novelist and scholar Margaret Laurence, who originally coined the term "Nation of Poets" to describe the Somali Peninsular, the Eidagale clan were viewed as "the recognized experts in the composition of poetry" by their fellow Somali contemporaries:
 Among the tribes, the Eidagalla are the recognized experts in the composition of poetry. One individual poet of the Eidagalla may be no better than a good poet of another tribe, but the Eidagalla appear to have more poets than any other tribe. "if you had a hundred Eidagalla men here," Hersi Jama once told me, "And asked which of them could sing his own gabei ninety-five would be able to sing. The others would still be learning." All of these traditions, including festivals, martial arts, dress, literature, sport and games such as Shax, have immensely contributed to the enrichment of Somali heritage.
 Somalis have a rich musical heritage centered on traditional Somali folklore. Most Somali songs are pentatonic. That is, they only use five pitches per octave in contrast to a heptatonic (seven note) scale, such as the major scale. At first listen, Somali music might be mistaken for the sounds of nearby regions such as Ethiopia, Sudan or Arabia, but it is ultimately recognizable by its own unique tunes and styles. Somali songs are usually the product of collaboration between lyricists (midho), songwriters (laxan) and singers (Codka or "voice").
 Growing out of the Somali people's rich storytelling tradition, the first few feature-length Somali films and cinematic festivals emerged in the early 1960s, immediately after independence. Following the creation of the Somali Film Agency (SFA) regulatory body in 1975, the local film scene began to expand rapidly. Hassan Sheikh Mumin was considered one of the most prolific and early playwrights and composers in Somali literature. Mumin's most important work is Shabeel Naagood (1965), a piece that touches on the social position of women, urbanization, changing traditional practices, and the importance of education during the early pre-independence period. Although the issues it describes were later to some degree redressed, the work remains a mainstay of Somali literature.  Shabeel Naagood was translated into English in 1974 under the title Leopard Among the Women by the Somali Studies pioneer Bogumił W. Andrzejewski, who also wrote the introduction. Mumin composed both the play itself and the music used in it. The piece is regularly featured in various school curricula, including Oxford University, which first published the English translation under its press house.
 During one decisive passage in the play, the heroine, Shallaayo, laments that she has been tricked into a false marriage by the Leopard in the title:
 "Women have no share in the encampments of this world
 And it is men who made these laws, to their own advantage.
 By God, by God, men are our enemies, though we ourselves nurtured them
 We suckled them at our breasts, and they maimed us:
 
We do not share peace with them." The Somali filmmaker Ali Said Hassan concurrently served as the SFA's representative in Rome. In the 1970s and early 1980s, popular musicals known as riwaayado were the main driving force behind the Somali movie industry.
 Epic and period films as well as international co-productions followed suit, facilitated by the proliferation of video technology and national television networks. Said Salah Ahmed during this period directed his first feature film, The Somali Darwish (The Somalia Dervishes), devoted to the Dervish movement. In the 1990s and 2000s, a new wave of more entertainment-oriented movies emerged. Referred to as Somaliwood, this upstart, youth-based cinematic movement has energized the Somali film industry and in the process introduced innovative storylines, marketing strategies and production techniques. The young directors Abdisalam Aato of Olol Films and Abdi Malik Isak are at the forefront of this quiet revolution.
 Somalis have old visual art traditions, which include pottery, jewelry and wood carving. In the medieval period, affluent urbanites commissioned local wood and marble carvers to work on their interiors and houses. Intricate patterns also adorn the mihrabs and pillars of ancient Somali mosques. Artistic carving was considered the province of men, whereas the textile industry was mainly that of women. Among the nomads, carving, especially woodwork, was widespread and could be found on the most basic objects such as spoons, combs and bowls. It also included more complex structures, such as the portable nomadic house, the aqal. In the last several decades, traditional carving of windows, doors and furniture have given way to workshops employing electrical machinery, which deliver the same results in a far shorter time period.
 Additionally, henna is an important part of Somali culture. It is worn by Somali women on their hands, arms, feet and neck during wedding ceremonies, Eid, Ramadan and other festive occasions. Somali henna designs are similar to those in the Arabian peninsula, often featuring flower motifs and triangular shapes. The palm is also frequently decorated with a dot of henna and the fingertips are dipped in the dye. Henna parties are usually held before the wedding takes place. Somali women have likewise traditionally applied kohl (kuul) to their eyes. Usage of the eye cosmetic in the Horn region is believed to date to the ancient Land of Punt.
 Football is the most popular sport amongst Somalis. Important competitions are the Somalia League and Somalia Cup. The Ocean Stars is Somalia's multi-ethnic national team.
 Basketball is also played in the country. The FIBA Africa Championship 1981 was hosted in Mogadishu from 15 to 23 December December 1981, during which the national basketball team received the bronze medal. The squad also takes part in the basketball event at the Pan Arab Games. Other team sports include badminton, baseball, table tennis, and volleyball.
 In the martial arts, Faisal Jeylani Aweys and Mohamed Deq Abdulle also took home a silver medal and fourth place, respectively, at the 2013 Open World Taekwondo Challenge Cup in Tongeren. The Somali National Olympic committee has devised a special support program to ensure continued success in future tournaments. Additionally, Mohamed Jama has won both world and European titles in K1 and Thai Boxing. Other individuals sports include judo, boxing, athletics, weight lifting, swimming, rowing, fencing and wrestling. Somalis have also produced many world-class distance runners like their neighboring countries with Mo Farah, Abdi Bile and Mohammed Ahmed.
 Traditionally, Somali men typically wear the macawis. It is a sarong that is worn around the waist. On their heads, they often wrap a colorful turban or wear the koofiyad, which is an embroidered fez.
 Due to Somalia's proximity to and close ties with the Arabian Peninsula, many Somali men also wear the jellabiya (jellabiyad or qamiis). The costume is a long white garment common in the Arab world.
 During regular, day-to-day activities, Somali women usually wear the guntiino. It is a long stretch of cloth tied over the shoulder and draped around the waist. The cloth is usually made out of alandi, which is a textile that is common in the Horn region and some parts of North Africa. The garment can be worn in different styles. It can also be made with other fabrics, including white cloth with gold borders. For more formal settings, such as at weddings or religious celebrations like Eid, women wear the dirac. It is a long, light, diaphanous voile dress made of silk, chiffon, taffeta or saree fabric. The gown is worn over a full-length half-slip and a brassiere. Known as the gorgorad, the underskirt is made out of silk and serves as a key part of the overall outfit. The dirac is usually sparkly and very colorful, the most popular styles being those with gilded borders or threads.
 Married women tend to wear headscarves referred to as shaash. They also often cover their upper body with a shawl, which is known as garbasaar. Unmarried or young women, however, do not always cover their heads. Traditional Arabian garb, such as the jilbab and abaya, is also commonly worn.
 Additionally, Somali women have a long tradition of wearing gold jewelry, particularly bangles. During weddings, the bride is frequently adorned in gold. Many Somali women by tradition also wear gold necklaces and anklets.
 The Somali flag is an ethnic flag conceived to represent ethnic Somalis. It was created in 1954 by the Somali scholar Mohammed Awale Liban, after he had been selected by the labour trade union of the Trust Territory of Somalia to come up with a design. Upon independence in 1960, the flag was adopted as the national flag of the nascent Somali Republic. The five-pointed Star of Unity in the flag's center represents the Somali ethnic group inhabiting the five territories in Greater Somalia.
 The Somali staple food comes from their livestock, however, the Somali cuisine varies from region to region and consists of a fusion of diverse culinary influences. In the interiors, the cuisine is mainly local with usage of Ethiopian grains and vegetables while in the coast it is the product of Somalia's rich tradition of trade and commerce. Despite the variety, there remains one thing that unites the various regional cuisines: all food is served halal. There are therefore no pork dishes, alcohol is not served, nothing that died on its own is eaten, and no blood is incorporated.
 Breakfast (quraac) is an important meal for Somalis, some drink tea (shahie or shaah) others coffee (qaxwa or bun). The tea is often in the form of haleeb shai (Yemeni milk tea) in the north. The main dish is typically a pancake-like bread (canjeero or canjeelo) similar to Ethiopian injera, but smaller and thinner, or muufo a Somali flat bread traditionally baked on a clay oven. These breads might also be eaten with a stew (maraqe) or soup at lunch or dinner. Qado or lunch is often elaborate, varieties of bariis (rice), the most popular being basmati are usually served as the main dish alongside goat, lamb or fish. Spices like cumin, cardamom, cloves, cinnamon, and garden sage are used to aromatize these different rice delicacies. Somalis eat dinner as late as 9 pm. During Ramadan, supper is often served after Tarawih prayers; sometimes as late as 11 pm.
 In some regions, xalwo (halva) is a popular confection eaten during festive occasions such as Eid celebrations or wedding receptions. It is made from sugar, corn starch, cardamom powder, nutmeg powder and ghee. Peanuts are also sometimes added to enhance texture and flavor. After meals, homes are traditionally perfumed using frankincense (lubaan) or incense (cuunsi), which is prepared inside an incense burner referred to as a dabqaad.
 Somali scholars have for centuries produced many notable examples of Islamic literature ranging from poetry to Hadith. With the adoption of the Latin alphabet in 1972 to transcribe the Somali language, numerous contemporary Somali authors have also released novels, some of which have gone on to receive worldwide acclaim. Most of the early Somali literature is in the Arabic script and Wadaad writing. This usage was limited to Somali clerics and their associates, as sheikhs preferred to write in the liturgical Arabic language. Various such historical manuscripts in Somali nonetheless exist, which mainly consist of Islamic poems (qasidas), recitations and chants. Among these texts are the Somali poems by Sheikh Uways and Sheikh Ismaaciil Faarah. The rest of the existing historical literature in Somali principally consists of translations of documents from Arabic.
 Somalis for centuries have practiced a form of customary law, which they call xeer. Xeer is a polycentric legal system where there is no monopolistic agent that determines what the law should be or how it should be interpreted. It is assumed to have developed exclusively in the Horn of Africa since approximately the 7th century. Given the dearth of loan words from foreign languages within the xeer's nomenclature, the customary law appears to have evolved in situ.
 Xeer is defined by a few fundamental tenets that are immutable and which closely approximate the principle of jus cogens in international law: payment of blood money (locally referred to as diya or mag), assuring good inter-clan relations by treating women justly, negotiating with "peace emissaries" in good faith, and sparing the lives of socially protected groups (e.g. children, women, the pious, poets and guests), family obligations such as the payment of dowry, and sanctions for eloping, rules pertaining to the management of resources such as the use of pasture land, water, and other natural resources, providing financial support to married female relatives and newlyweds, donating livestock and other assets to the poor. The Xeer legal system also requires a certain amount of specialization of different functions within the legal framework. Thus, one can find odayal (judges), xeer boggeyaal (jurists), guurtiyaal (detectives), garxajiyaal (attorneys), murkhaatiyal (witnesses) and waranle (police officers) to enforce the law.
 Somali architecture is a rich and diverse tradition of engineering and designing. It involves multiple different construction types, such as stone cities, castles, citadels, fortresses, mosques, mausoleums, towers, tombs, tumuli, cairns, megaliths, menhirs, stelae, dolmens, stone circles, monuments, temples, enclosures, cisterns, aqueducts, and lighthouses. Spanning the ancient, medieval and early modern periods in Greater Somalia, it also includes the fusion of Somali architecture with Western designs in contemporary times.
 In ancient Somalia, pyramidical structures known in Somali as taalo were a popular burial style. Hundreds of these dry stone monuments are found around the country today. Houses were built of dressed stone similar to the ones in Ancient Egypt. There are also examples of courtyards and large stone walls enclosing settlements, such as the Wargaade Wall.
 The peaceful introduction of Islam in the early medieval era of Somalia's history brought Islamic architectural influences from Arabia and Persia. This had the effect of stimulating a shift in construction from drystone and other related materials to coral stone, sundried bricks, and the widespread use of limestone in Somali architecture. Many of the new architectural designs, such as mosques, were built on the ruins of older structures. This practice would continue over and over again throughout the following centuries.
 Somalis constitute the largest ethnic group in Somalia, at approximately 85% of the nation's inhabitants. They also comprise around 60% of the inhabitants in Djibouti.
 Civil strife in the early 1990s greatly increased the size of the Somali diaspora, as many of the best educated Somalis left for the Middle East, Europe and North America. In Canada, the cities of Toronto, Ottawa, Calgary, Edmonton, Montreal, Vancouver, Winnipeg and Hamilton all harbor Somali populations. Statistics Canada's 2006 census ranks people of Somali descent as the 69th largest ethnic group in Canada.
 UN migration estimates of the international migrant stock 2015 suggest that 1,998,764 people from Somalia were living abroad.
 While the distribution of Somalis per country in Europe is hard to measure because the Somali community on the continent has grown so quickly in recent years, the Office for National Statistics estimates that 98,000 people born in Somalia were living in the United Kingdom in 2016. This includes secondary migration of Somalis from mainland European countries. Somalis in Britain are largely concentrated in the cities of London, Sheffield, Bristol, Birmingham, Cardiff, Liverpool, Manchester, Leeds, and Leicester, with London alone accounting for roughly 78% of Britain's Somali population in 2001. There are also significant Somali communities in continental Europe such as Sweden: 63,853 (2016); Norway: 42,217 (2016); the Netherlands: 39,465 (2016); Germany: 33,900 (2016); Denmark: 21,050 (2016); and Finland: 20,007 (2017).
 In the United States, Minneapolis, Saint Paul, Columbus, San Diego, Seattle, Washington, D.C., Houston, Atlanta, Los Angeles, Portland, Denver, Nashville, Green Bay, Lewiston, Portland, Maine and Cedar Rapids have the largest Somali populations.
 An estimated 20,000 Somalis emigrated to the U.S. state of Minnesota some ten years ago and the Twin Cities (Minneapolis and Saint Paul) now have the highest population of Somalis in North America. The city of Minneapolis hosts hundreds of Somali-owned and operated businesses offering a variety of products, including leather shoes, jewelry and other fashion items, halal meat, and hawala or money transfer services. Community-based video rental stores likewise carry the latest Somali films and music. The number of Somalis has especially surged in the Cedar-Riverside area of Minneapolis.
 There is a sizable Somali community in the United Arab Emirates. Somali-owned businesses line the streets of Deira, the Dubai city centre, with only Iranians exporting more products from the city at large. Internet cafés, hotels, coffee shops, restaurants and import-export businesses are all testimony to the Somalis' entrepreneurial spirit. Star African Air is also one of three Somali-owned airlines which are based in Dubai.
 Besides their traditional areas of inhabitation in Greater Somalia, a Somali community mainly consisting of entrepreneurs, academics, and students also exists in Egypt. In addition, there is an historical Somali community in the general Sudan area. Primarily concentrated in the north and Khartoum, the expatriate community mainly consists of students as well as some businesspeople. More recently, Somali entrepreneurs have established themselves in Kenya, investing over $1.5 billion in the Somali enclave of Eastleigh alone. In South Africa, Somali businesspeople also provide most of the retail trade in informal settlements around the Western Cape province.
 According to Y chromosome studies by Sanchez et al. (2005), Cruciani et al. (2004, 2007), the Somalis are paternally closely related to other Afro-Asiatic-speaking groups in Northeast Africa. Besides comprising the majority of the Y-DNA in Somalis, the E1b1b (formerly E3b) haplogroup also makes up a significant proportion of the paternal DNA of Ethiopians, Sudanese, Egyptians, Berbers, North African Arabs, as well as many Mediterranean populations. Sanchez et al. (2005) observed the E-M78 subclade of E1b1b1a in about 70.6% of their Somali male samples. According to Cruciani et al. (2007), the presence of this subhaplogroup in the Horn region may represent the traces of an ancient migration from Egypt/Libya.
 After haplogroup E1b1b, the second most frequently occurring Y-DNA haplogroup among Somalis is the West Asian haplogroup T (M184). The clade is observed in more than 10% of Somali males generally, with a peak frequency amongst the Somali Dir clan members in Djibouti (100%) and Somalis in Dire Dawa (82.4%), a city with a majority Dir population. Haplogroup T, like haplogroup E1b1b, is also typically found among other populations of Northeast Africa, the Maghreb, the Near East and the Mediterranean.
 In Somalis, the Time to Most Recent Common Ancestor (TMRCA) was estimated to be 4000–5000 years (2,500 BCE) for the haplogroup E-M78 cluster γ and 2100–2200 years (150 BCE) for Somali T-M184 bearers.
 Deep subclade E-Y18629 is commonly found in Somalis and has a formation date of 3,700 YBP (years before present) and a TMRCA of 3,300 YBP.
 According to mtDNA studies by Holden (2005) and Richards et al. (2006), a significant proportion of the maternal lineages of Somalis consists of the M1 haplogroup at a rate of over 20%. This mitochondrial clade is common among Ethiopians and North Africans, particularly Egyptians and Algerians. M1 is believed to have originated in Asia, where its parent M clade represents the majority of mtDNA lineages. This haplogroup is also thought to possibly correlate with the Afro-Asiatic language family: In addition, Somalis, and other Horn African populations, also carry a significant rate of maternal L lineages associated with sub-Saharan Africa.
 "We analysed mtDNA variation in ~250 persons from Libya, Somalia, and Congo/Zambia, as representatives of the three regions of interest. Our initial results indicate a sharp cline in M1 frequencies that generally does not extend into sub-Saharan Africa. While our North and especially East African samples contained frequencies of M1 over 20%, our sub-Saharan samples consisted almost entirely of the L1 or L2 haplogroups only. In addition, there existed a significant amount of homogeneity within the M1 haplogroup. This sharp cline indicates a history of little admixture between these regions. This could imply a more recent ancestry for M1 in Africa, as older lineages are more diverse and widespread by nature, and may be an indication of a back-migration into Africa from the Middle East." Research shows that Somalis have a mixture of a type of native African ancestry unique and autochthonous to the Horn of Africa, as well as ancestry originating from a non-African back-migration. According to an autosomal DNA study by Hodgson et al. (2014), the Afro-Asiatic languages were likely spread across Africa and the Near East by an ancestral population(s) carrying a newly identified non-African genetic component, which the researchers dub as the "Ethio-Somali". This component today is most common among Afro-Asiatic-speaking populations in the Horn of Africa. It reaches a frequency peak among ethnic Somalis, representing the majority of their ancestry. The Ethio-Somali component is most closely related to the Maghrebi non-African genetic component, and is believed to have diverged from all other non-African ancestries at least 23,000 years ago. On this basis, the researchers suggest that the original Ethio-Somali carrying population(s) probably arrived in the pre-agricultural period from the Near East, having crossed over into northeastern Africa via the Sinai Peninsula. The population then likely split into two branches, with one group heading westward toward the Maghreb and the other moving south into the Horn. Ancient DNA analysis indicates that this foundational ancestry in the Horn region is akin to that of Neolithic farmers of the southern Levant.
 Furthermore, according to Hodgson et al. both the African ancestry (Ethiopic) and the non-African ancestry (Ethio-Somali) in Cushitic speaking populations is significantly differentiated from all neighboring African and non-African ancestries today. The overall genetic ancestry of Cushitic and Semitic speaking populations in the Horn of Africa represents ancestries not found outside of HOA populations. The researchers state:
 "The African Ethiopic ancestry is tightly restricted to HOA populations and likely represents an autochthonous HOA population. The non-African ancestry in the HOA, which is primarily attributed to a novel Ethio-Somali inferred ancestry component, is significantly differentiated from all neighboring non-African ancestries in North Africa, the Levant, and Arabia." Moreover, Hodgson et al. (2014) elaborates further:
 "We find that most of the non-African ancestry in the HOA can be assigned to a distinct non-African origin Ethio-Somali ancestry component, which is found at its highest frequencies in Cushitic and Semitic speaking HOA populations." Molinaro, Ludovica et al in 2019 characterized the Non-African ancestry in Ethiopian Somalis as being derived from Anatolia Neolithic groups (similar to Tunisian Jews). Ali, A.A., Aalto, M., Jonasson, J. et al. (2020) using principal component analysis showed that approximately 60% of Somali ancestry is East African and 40% Western Eurasian.
 The scholarly term for research concerning Somalis and Greater Somalia is Somali Studies. It consists of several disciplines such as anthropology, sociology, linguistics, historiography and archaeology. The field draws from old Somali chronicles, records and oral literature, in addition to written accounts and traditions about Somalis from explorers and geographers in the Horn of Africa and the Middle East. Since 1980, prominent Somalist scholars from around the world have also gathered annually to hold the International Congress of Somali Studies.