Muslims crossed current Djibouti and Somalia to seek refuge in present-day Eritrea and Ethiopia during the Hijrah ("Migration") to the Christian Kingdom of Aksum.
Most of those Muslims returned to Medina in 7 AH / 628 CE but some settled in the neighboring Zeila (current day Somalia ) which was at that time part of Bilād al-Barbar ("Land of the Berber(s)").
The conquest of North Africa continued under the Umayyad dynasty, which annexed parts of Algeria around 61 H/680 CE and Morocco the following year.
Then the British brought their labor force from India, including some Muslim-Indian nationals, to their colonies in Africa towards the end of the nineteenth and beginning of the twentieth century.
Lewis, the polity was governed by local dynasties, who also ruled over the similarly-established Sultanate of Mogadishu in the littoral Benadir region to the south.
Other early notable missionaries include Abdallah ibn Yasin, who started a movement which caused thousands of Berbers to accept Islam.
[14] In the 13th century, Al-Hajj Salim Suwari formulated an important theological rationale for peaceful coexistence with the non-Muslim ruling classes called the Suwarian tradition.
He seconded the Arab anthropologist Abduhu Badawi on the argument that the early Muslim missionaries had benefited their works from the fall of Kush in northern Sudan and the prosperity of the politically multicultural Abbasid period in the continent which, according to him, had created several streams of migration, moving west in the mid-9th century into Sub-Saharan Africa.
[18] Similarly, in the Swahili coast, Islam made its way inland – spreading at the expense of traditional African religions.
In praising the Africans' zealousness to Islam, the 14th-century explorer Ibn Battuta stated that mosques were so crowded on Fridays, that unless one went very early, it was impossible to find a place to sit.
[citation needed] Islam has been in Africa for so long, since its emergence on the Arabian peninsula, that some scholars have argued that it is a traditional African religion.
Egypt, one of the largest Muslim states in Africa, claims Sharia as the main source of its legislation, yet its penal and civil codes are based largely on French law.
These countries, as well as the percentages of the Muslim populations who fall under this bracket include, Mali (55%), Nigeria (42%), Cameroon (40%), Tunisia (40%), Guinea Bissau (36%), Uganda (33%), Morocco (30%), Senegal (27%), Chad (23%), Ethiopia (23%), Liberia (22%), Niger (20%), and Tanzania (20%).
Salafis criticize the folklorists Sufis, who they claim have incorporated "un-Islamic" beliefs into their practices, such as celebrating the several events, visiting the shrines of "Islamic saints", dancing during prayer (the whirling dervishes).
[24] West Africa and Sudan have various Sufi orders regarded skeptically by the more doctrinally strict branches of Islam in the Middle East.
Most orders in West Africa emphasize the role of a spiritual guide, marabout or possessing supernatural power, regarded as an Africanization of Islam.
The Tijani is the most popular Sufi order in West Africa, with a large following in Mauritania, Mali, Niger, Senegal and Gambia.
These Salafist organizations, often based out of Saudi Arabia, promote a form of conservative reformism and regard Sufism as "heterodox" and contrary to their interpretation of traditional Islam.
[20] Such NGOs have built Salafi-dominated mosques and Islamic centers in Africa, and many are staffed by puritanical African Muslims, often trained in the Middle East.