Islam in Africa
Read the original on Wikipedia ↗ Last updated from Wikipedia: 29 November 2026

Islam in Africa is the second most professed faith behind Christianity, practiced by about 33% of the population, according to multiple survey waves by Afrobarometer between 2016 and 2023.[2] Although other estimates may place the population of Muslims as a share of the continent closer to 45%.[3] Africa was the first continent into which Islam spread from the Middle East, during the early 7th century CE (opens on Wikipedia). It is likely the earliest Muslims in Africa were disciples of Muhammad who sought refugee in the Christian Kingdom of Aksum, present-day Eritrea and Ethiopia, as a result of local dissatisfaction with Muhammad in Mecca.[4]
Like the vast majority of Muslims in the world, most Muslims in Africa are also Sunni Muslims;[5] the complexity of Islam in Africa is revealed in the various schools of thought, traditions, and voices in many African countries. Many African ethnicities, mostly in the northern half of the continent, consider Islam as their traditional religion. Islam in Africa has often adapted to African cultural contexts and belief systems forming Africa's own orthodoxies.[6]
As of 2025, Islam is the main religion of North Africa, the Horn of Africa, Sahel, the Swahili Coast, and West Africa, with minority immigrant populations in Southern Africa. In Sub-Saharan Africa, a 2020 survey found about 32.8% of the population were Muslims.[7]
The presence of Islam in Africa can be traced to the 7th century CE, when in Rajab 8 BH, or May 614 CE, Muhammad advised a number of his early disciples (opens on Wikipedia), who were facing persecution by the polytheistic (opens on Wikipedia) inhabitants of Mecca, to seek refuge across the Red Sea in Axum. In the Muslim tradition, this event is known as the first hijrah, or migration. Twenty-three Muslims migrated to Abyssinia where they were protected by its king, Armah An-Najāshī, who later accepted Islam. They were followed by 101 Muslims later in the same year. 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)"). Once in Zeila, they built the Masjid al-Qiblatayn ("Mosque of the two Qiblahs") in 627 CE. This mosque has two Qiblas because it was built before the Prophet switched the Qiblah from Jerusalem to Mecca. They also reportedly built Africa's oldest mosque (opens on Wikipedia), that is the Mosque of the Companions in the Eritrean city of Massawa.[8] This qibla of this mosque in Massawa points towards Jerusalem as well, though now defunct, occasional prayers are still held in this mosque with qibla correction towards Mecca.[9]
In 641 CE, during the reign of Caliph (opens on Wikipedia) Umar ibn al-Khattab (opens on Wikipedia), Muslim troops took over current Egypt and conquered current Libya the following year. Muslims then expanded to current Tunisia in 647 CE, during the reign of the third Muslim Caliph Uthman Ibn Affan. The conquest of North Africa continued under the Umayyad dynasty, which annexed parts of Algeria around 680 CE and Morocco the following year. From the latter Muslim troops crossed the Strait of Gibraltar to Europe in 711 CE. Islam gained momentum during the 10th century in West Africa with the start of the Almoravid dynasty movement on the Senegal River and as rulers and kings embraced Islam. Islam then spread slowly in much of the continent through trade and preaching.[10] During this period these Muslims from North and West Africa came to be known by Europeans at large as Moors.[11] By the 9th century, Muslim Sultanates started being established in the Horn of Africa, and by the 12th century, the Kilwa Sultanate had spread as far south as Mozambique. Islam only crossed deeper into Malawi and Congo in the second half of the 19th century under the Zanzibar Sultanate. 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.
Islam was introduced to the northern Somali coast early on from the Arabian peninsula, shortly after the hijra. Zeila's two-mihrab Masjid al-Qiblatayn dates to the 7th century, and is the oldest mosque in the city.[12] In the late 9th century, Al-Yaqubi wrote that Muslims were living along the northern Somali seaboard.[13] He also mentioned that the Adal kingdom had its capital in the city,[13][14] suggesting that the Adal Sultanate with Zeila as its headquarters dates back to at least the 9th or 10th century. According to I.M. 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. Adal's history from this founding period forth would be characterized by a succession of battles with neighboring Abyssinia.[14][15]
Islam continued to spread throughout the continent as a result of the trans-Saharan trade during the 11th century. Given the practice of Islam had baked in theory for contracts and trade, and given many Muslim scholars could read and write, there was a significant advantage to these individuals in trade. Today, academic research focuses on these merchant-scholars and their role in spreading Islam across the continent during this time.[16]
In the following centuries, the consolidation of Muslim trading networks, connected by lineage, trade, and Sufi brotherhoods, had reached a peak in West Africa, enabling Muslims to wield tremendous political influence and power. During the reign of Umar II (opens on Wikipedia), the then governor of Africa, Ismail ibn Abdullah, was said to have won the Berbers to Islam by his just administration. Other early notable missionaries include Abdallah ibn Yasin, who started a movement which caused thousands of Berbers to accept Islam.[17] In the 13th century, Al-Hajj Salim Suwari formulated an important theological rationale for peaceful (opens on Wikipedia) coexistence with the non-Muslim ruling classes called the Suwarian tradition.[18] Many Islamic schools were purely oral, and most children leaving Koranic schools were able to recite the whole of the Quran in Arabic despite not being fluent themselves.[19]: 196–197
The History of Islam in Africa and accounts of how the religion spread, especially in North and the Horn of Africa, has always been contentious. Head of Awqaf Africa London, Abu-Abdullah Adelabu has written in his Movements of Islam in face of the Empires and Kingdoms in Yorubaland claims about the early arrival of Islam in southwestern Nigeria. 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 Africa (Egypt and Sudan).[20] Adelabu pointed at the popularity and influences of the Abbasid Dynasty (opens on Wikipedia) (750–1258), the second great dynasty with the rulers carrying the title of 'Caliph (opens on Wikipedia)' as fostering peaceful and prosperous migration of the intercultural Muslims from the Nile Valley to Niger as well as of the Arab traders from the desert to Benue. Some argue that adoption of Islam was motivated by the desire to enhance trade, as Islam provided a moral code of conduct (opens on Wikipedia) to regulate commercial activities, especially with respect to credit (opens on Wikipedia) and security.[21]

Similarly, in the Swahili coast, Islam made its way inland – spreading at the expense of traditional African religions.[23] This expansion of Islam in Africa not only led to the formation of new communities in Africa, but it also reconfigured existing African communities and empires to be based on Islamic models.[24] Indeed, in the middle of the 11th century, the Kanem Empire, whose influence extended into Sudan, converted to Islam. At the same time but more toward West Africa, the reigning ruler of the Bornu Empire embraced Islam.[17] As these kingdoms adopted Islam, their subjects thereafter followed suit. 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.[17]
In the 16th century, the Ouaddai Empire and the Kingdom of Kano embraced Islam, and later toward the 18th century, the Nigeria based Sokoto Caliphate led by Usman dan Fodio exerted considerable effort in spreading Islam in the Fulani Jihad.[17]
Today, Islam is the predominant religion of the northern half of Africa, mainly concentrated in North Africa, the Horn of Africa and the Sahel, as well as West Africa.[25] When North Africa is grouped with the Middle East (MENA), a 2024 survey found 94% of the region's religious population is Muslim.[26] This is driven by Islam-dominated countries such as Djibouti (97%), Mali (90%), and Senegal (89%).[5]
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.[27] Although the majority of Muslims in Africa are non-denominational Muslims, Sunni[28] or Sufi, the complexity of Islam in Africa is revealed in the various schools of thought, traditions, and voices that constantly contend for dominance in many African countries. Islam in Africa is not static and is constantly being reshaped by prevalent social, economic and political conditions.[24]
Islam in Africa is often adapted to local cultural contexts and belief systems, thereby forming the continent's own orthodoxies. Different societies in Africa have generally appropriated Islam in both more inclusive ways, or in the more radical ways, as with the Almoravid movement in the Maghreb and Sahara.[6]
Additionally, Islam in Africa has both local and global dimensions. On the local level, experts assert that Muslims (including African Muslims) operate with considerable autonomy and do not have an international organization that regulates their religious practices. This fact accounts for the differences and varieties in Islamic practices throughout the African continent. On the global level, Muslims in Africa are also part of the Ummah (Islamic community worldwide), and follow global issues and current events that affect the Muslim world with keen interest. With globalization and new initiatives in information technology, Muslims in Africa have developed and maintained close connections with the wider Muslim world.[24]
Hassan, citing Marcovitz (2007),[29] says that:
Analysts argue that African Muslims, like other Muslims in Asia, the Middle East and the rest of the world, seem to be locked into an intense struggle regarding the future direction of Islam. At core of the struggle are questions about the way in which Muslims should practice their faith. The scholars assert that the majority seems to prefer to remain on the moderate, tolerant course that Islam has historically followed. However, a relatively small, but growing group would like to establish a stricter form of the religion, one that informs and controls all aspects of society.[24]: 3
Loading “Muslim law (Shari'ah)”…
Loading “Sects”…
Loading “Mosques”…
Loading “Notable kingdoms and sultanates”…
Loading “Muslim population in Africa by country”…
Loading “See also”…
Loading “References”…
Loading “Further reading”…
Loading “External links”…
Image credits (67)
- Africa Muslims.svg — SPQR10, CC BY-SA 4.0, via Wikimedia Commons
- Sankore Moske Timboektoe.JPG — Baz Lecocq at nl.wikipedia, CC BY 2.5 nl, via Wikimedia Commons
- Great Mosque of Kairouan Stitched Panorama - Grande Mosquée de Kairouan Panorama.jpg — MAREK SZAREJKO from CLONMEL, IRELAND - POLAND, CC BY-SA 2.0, via Wikimedia Commons
- Larabanga Mosque Ghana.jpg — Sathyan Velumani, CC BY-SA 3.0, via Wikimedia Commons
- Abuja National Mosque.jpg — Mark Fischer, CC BY-SA 2.0, via Wikimedia Commons
- Grande mosquée de Touba.jpg — Malickdieye38, CC BY-SA 4.0, via Wikimedia Commons
- Zanzibar 2012 06 06 4186 (7592251870).jpg — Harvey Barrison from Massapequa, NY, USA, CC BY-SA 2.0, via Wikimedia Commons
- A mosque near a rest stop between Khartoum and Karima.jpg — Mark Fischer, CC BY-SA 2.0, via Wikimedia Commons
- El-Tabia Mosque, Aswan.jpg — Petar Milošević, CC BY-SA 4.0, via Wikimedia Commons
- Sahaba Shrine, Massawa, Eritrea.jpg — Grullab, CC BY-SA 4.0, via Wikimedia Commons
- Mosque of Islamic Solidarity (cropped).jpeg — Welimo28, CC BY-SA 4.0, via Wikimedia Commons
- Flag of Algeria.svg — Original: National Liberation Front of Algeria Vector: SKopp, Public domain, via Wikimedia Commons
- Flag of Angola.svg — Original: Henrique de Carvalho Santos Vector: SKopp, Public domain, via Wikimedia Commons
- Flag of Benin.svg — Drawn by User:SKopp, rewritten by User:Gabbe, Public domain, via Wikimedia Commons
- Flag of Botswana.svg — SKopp, Gabbe, Madden, Public domain, via Wikimedia Commons
- Flag of Burkina Faso.svg — Drawn by SKopp, rewritten by Gabbe and Андрей Перцев, Public domain, via Wikimedia Commons
- Flag of Burundi.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Cameroon.svg — (of code) -xfi-, Public domain, via Wikimedia Commons
- Flag of Cape Verde (10-17).svg — Original: Pedro Gregório Vector: SKopp, Public domain, via Wikimedia Commons
- Flag of the Central African Republic.svg — Barthélemy Boganda, Public domain, via Wikimedia Commons
- Flag of Chad.svg — SKopp & others (see upload log), Public domain, via Wikimedia Commons
- Flag of the Comoros.svg — Original: Comoros; Vector: see file history, Public domain, via Wikimedia Commons
- Flag of the Republic of the Congo.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of the Democratic Republic of the Congo.svg — Nightstallion, Public domain, via Wikimedia Commons
- Flag of Djibouti.svg — Unknown author, Public domain, via Wikimedia Commons
- Flag of Egypt.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Equatorial Guinea.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Eritrea.svg — Unknown author, Public domain, via Wikimedia Commons
- Flag of Ethiopia.svg — Drawn by User:SKopp, Public domain, via Wikimedia Commons
- Flag of Gabon.svg — Léon Augé and Pierre Claver Eyeghe, Public domain, via Wikimedia Commons
- Flag of The Gambia.svg — Vzb83, Public domain, via Wikimedia Commons
- Flag of Ghana.svg — Theodosia Okoh, Public domain, via Wikimedia Commons
- Flag of Guinea.svg, Public domain, via Wikimedia Commons
- Flag of Guinea-Bissau.svg, Public domain, via Wikimedia Commons
- Flag of Côte d'Ivoire.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Kenya.svg — User:Pumbaa80, Public domain, via Wikimedia Commons
- Flag of Morocco.svg — Denelson83, Zscout370, Public domain, via Wikimedia Commons
- Flag of Lesotho.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Liberia.svg — Government of Liberia, Public domain, via Wikimedia Commons
- Flag of Libya.svg — Various, Public domain, via Wikimedia Commons
- Flag of Madagascar.svg, Public domain, via Wikimedia Commons
- Flag of Malawi.svg — Original: Unknown author Vector: Achim1999, Public domain, via Wikimedia Commons
- Flag of Mali.svg — SKopp, Public domain, via Wikimedia Commons
- Flag of Mauritania.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Mauritius.svg — Zscout370, Public domain, via Wikimedia Commons
- Flag of Mozambique.svg — FRELIMO, Public domain, via Wikimedia Commons
- Flag of Namibia.svg — SVG by Vzb83~commonswiki et al., Public domain, via Wikimedia Commons
- Flag of Niger.svg — Philippe Verdy, Public domain, via Wikimedia Commons
- Flag of Nigeria.svg — Jon Harald Søby., Public domain, via Wikimedia Commons
- Flag of Rwanda.svg — Original: Unknown Vector: Zscout370, Public domain, via Wikimedia Commons
- Flag of Saint Helena.svg — Patricia Fidi, Public domain, via Wikimedia Commons
- Flag of São Tomé and Príncipe.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Senegal.svg — Original upload by Nightstallion, Public domain, via Wikimedia Commons
- Flag of Seychelles.svg — User:Vxb83, Public domain, via Wikimedia Commons
- Flag of Sierra Leone.svg — Zscout370, Public domain, via Wikimedia Commons
- Flag of Somalia.svg — see upload history, Public domain, via Wikimedia Commons
- Flag of South Africa.svg — Flag design by Frederick Brownell, image by Wikimedia Commons users, Public domain, via Wikimedia Commons
- Flag of South Sudan.svg — Achim1999, Public domain, via Wikimedia Commons
- Flag of Sudan.svg — See File history below for details., Public domain, via Wikimedia Commons
- Flag of Eswatini.svg — Sobhuza II, Public domain, via Wikimedia Commons
- Flag of Tanzania.svg, Public domain, via Wikimedia Commons
- Flag of Togo (3-2).svg — Sangjinhwa, Public domain, via Wikimedia Commons
- Flag of Tunisia.svg — Various Wikimedia Commons' contributors, Public domain, via Wikimedia Commons
- Flag of Uganda.svg — tobias, Public domain, via Wikimedia Commons
- Flag of Zambia.svg — Gabriel Ellison, Public domain, via Wikimedia Commons
- Flag of Zimbabwe.svg — See File history below for details., Public domain, via Wikimedia Commons
- Lock-green.svg — User:Trappist the monk, CC0, via Wikimedia Commons