Islam Flourishes in West Africa
الإسلام في غرب أفريقيا
# Islam Comes to West Africa: Trade, Scholarship, and the Spread of the Faith
The Routes of Islam Southward
The Sahara Desert, which separates North Africa from sub-Saharan West Africa, might appear to be an insurmountable barrier to human communication. In fact, from ancient times, trans-Saharan trade routes crossed this vast landscape along a series of oases and wells, connecting the Mediterranean world to the savannah and forest zones of West Africa. These routes carried gold, salt, slaves, and manufactured goods in both directions — and they also carried religion, culture, and ideas.
Islam reached West Africa through these trade routes within a century of the Prophet's ﷺ death. The earliest evidence of Muslim presence in the region dates to the 9th century CE, when Arab and Berber merchants from the Maghreb (Morocco, Tunisia) established trading relationships with the kingdoms of the Sahel — the semi-arid zone south of the Sahara where the great West African empires of Ghana, Mali, and Songhai would eventually rise.
The Saharan trade was organized around specific commodities: West Africa possessed enormous reserves of gold (in the fields of Bambuk and Bure in modern Senegal and Guinea) and kola nuts, while North Africa and the Islamic world to the east offered salt (extracted from Saharan deposits, particularly at Taghaza), horses, copper, cloth, and manufactured goods. The camel — the technology that made Saharan travel practicable — had been introduced to North Africa from Arabia by the first centuries of the Common Era, and by the time of Islam's expansion it was the standard transport animal for the trans-Saharan routes.
The Ghana Empire and the First Muslim Presence
The Ghana Empire (not to be confused with the modern nation of Ghana, which is located to the southeast) was centered in the region of modern-day southeastern Mauritania and western Mali, with its capital at Koumbi Saleh (in modern Mauritania). At its peak in the 9th-11th centuries CE, it controlled the gold trade routes between the goldfields of West Africa and the Saharan merchants.
The eleventh-century Andalusian geographer Abu Ubayd al-Bakri, writing his "Kitab al-Masalik wa al-Mamalik" (Book of Routes and Realms) in approximately 460 AH / 1068 CE, provides the first detailed description of the Ghana Empire from an Islamic perspective. Al-Bakri had not visited West Africa himself but compiled his account from merchants and traders who had.
His account reveals a sophisticated arrangement: the king of Ghana was not Muslim, but he maintained a separate Muslim town adjacent to his own royal capital. This Muslim quarter had twelve mosques, Muslim scholars and merchants, and its own administration. The king employed Muslim ministers and interpreters and maintained good relations with the Muslim trading community while himself adhering to traditional African religion. The court language included elements of Arabic for commercial purposes.
This pattern — Muslim merchants forming a distinct community within the capital of a non-Muslim kingdom, providing administrative services and commercial expertise, gradually converting segments of the population — was to recur across West Africa over the following centuries.
The Almoravid Movement and Its Impact
The Almoravid movement (al-Murabitun) emerged in the mid-5th century AH / mid-11th century CE from among the Sanhaja Berber confederation of the western Sahara. A Maliki scholar named Abdallah ibn Yasin was invited by the Sanhaja chief Yahya ibn Ibrahim to preach among his people after Yahya returned from the Hajj troubled by his community's religious ignorance. Ibn Yasin established a ribat — a fortified religious retreat — and began training a community of religious warriors committed to strict Maliki Sunni practice.
The Almoravids expanded in two directions: northward into Morocco and eventually al-Andalus (Spain), where they established a dynasty that temporarily halted the Christian Reconquista; and southward against the Ghana Empire. In 469 AH / 1076 CE, the Almoravids sacked Koumbi Saleh, the Ghana capital, fundamentally disrupting the empire's political structure.
The long-term religious impact of the Almoravid movement was the strengthening of Maliki Islam across the western Sahara and Sahel — an impact that persists today in the predominance of the Maliki madhhab across West Africa, North Africa, and West Muslim Spain.
The Mali Empire: Mansa Musa and the Pilgrimage that Stunned the World
The Mali Empire rose from the ruins of Ghana's collapse and became the most powerful state in West Africa from approximately 624 AH / 1230 CE (when the legendary Sundiata Keita defeated the Sosso king Sumanguru Kante) to the early 9th AH / 15th century CE. Unlike the Ghana Empire, Mali was explicitly Muslim in its ruling class from the beginning.
The most dramatic evidence of Mali's Islamic identity came with the pilgrimage of Mansa Musa ibn Abu Bakr to Mecca in 724 AH / 1324 CE. Mansa Musa (r. approximately 707-737 AH / 1307-1337 CE) undertook the Hajj with a retinue of extraordinary size and wealth — accounts vary, but contemporary sources speak of thousands of attendants, soldiers, and servants, and caravan animals carrying hundreds of pounds of gold.
When Mansa Musa passed through Cairo on his way to Mecca, his distribution of gold gifts was so lavish that it reportedly caused significant inflation in Cairo's gold market — the price of gold in Egypt falling for over a decade afterward due to the sudden influx. The Egyptian historian al-Maqrizi recorded accounts of this phenomenon: "This man flooded Cairo with his benefactions. He left no court official or holder of a royal office without the gift of a load of gold."
The pilgrimage announced to the Muslim world that West Africa was not a marginal periphery but home to rulers of enormous wealth and genuine Islamic commitment. Mansa Musa returned from the Hajj with architects (most famously the Andalusian architect Abu Ishaq al-Sahili, who designed mosques in Timbuktu) and scholars, investing in the development of Islamic learning in his empire.
Timbuktu: The City of Learning
No city better represents the Islamic intellectual achievement of West Africa than Timbuktu (Tombouctou), located on the edge of the Sahara at a bend of the Niger River in modern Mali. Founded approximately 500 AH / 1100 CE as a seasonal camp by Tuareg nomads, it grew into a permanent settlement and then into one of the great cities of the medieval Islamic world.
Under the Mali Empire and then the Songhai Empire (which absorbed Mali in the 9th AH / 15th century), Timbuktu became a major center of trans-Saharan trade — the meeting point of Saharan caravan routes and the Niger River system. Its wealth from trade funded an extraordinary concentration of Islamic scholarship.
The Sankore mosque and madrasa complex in Timbuktu became one of the most significant centers of Islamic learning in the world outside the Middle East. At its peak, it is estimated to have had approximately 25,000 students — an enormous number for any medieval institution. The scholars of Timbuktu wrote extensively on Islamic jurisprudence (primarily Maliki fiqh), hadith, tafsir, astronomy, medicine, and history.
The private libraries of Timbuktu's scholarly families accumulated hundreds of thousands of manuscripts — a written heritage that has survived, in large part, to the present day. The Mamma Haidara Commemorative Library and other Timbuktu manuscript collections contain hundreds of thousands of pages of Islamic scholarship produced by West African scholars from the 14th to the 18th centuries — evidence of a robust written Islamic intellectual culture far removed from the stereotype of a purely oral West African tradition.
The scholar Ahmad Baba al-Timbukti (963-1036 AH / 1556-1627 CE) was perhaps the most prolific and most celebrated of Timbuktu's scholars, writing extensively on Maliki jurisprudence and Islamic biography. His catalog of Maliki scholars ("Nayl al-Ibtihaj bi-Tatriz al-Dibaj") remains an important biographical reference.
Ibn Battuta in Mali: An Eyewitness Account
The Moroccan traveler Muhammad ibn Abdullah ibn Battuta visited the Mali Empire in 753-754 AH / 1352-1353 CE, providing the most detailed contemporary account of West African Islamic life in the medieval period. Ibn Battuta was a man of high standards: he had traveled the entire Islamic world from Morocco to China, and he applied consistent criteria across his observations.
His account of Mali is notable for both its admiration and its critique. He was deeply impressed by the widespread practice of Islamic prayer, the memorization of the Quran, and the enforcement of Islamic norms in public life: "The blacks wear clean white garments on Fridays; if any man among them has only one robe, he washes it and wears it to the Friday prayer. They take great care to memorize the Quran." He noted that children were chained until they had memorized the Quran — a form of motivational discipline that his account treats as praiseworthy.
At the same time, Ibn Battuta was critical of certain practices he observed that he considered contrary to Islamic norms: the presence of slave-women performing certain functions in ways he found inappropriate, and various customs that reflected the blending of African traditional practice with Islamic religion. This critical observation itself demonstrates that West African Islam was a living, developing tradition engaged in the same negotiations between religious ideal and cultural practice that characterize Islam in every society.
The Spread of Islam Through Sufi Teachers
A crucial vehicle for Islam's spread in West Africa was the Sufi orders (turuq) and their shaykhs, who combined religious teaching with the social functions of intermediaries, healers, and blessing-givers. The Qadiriyya — founded by Abd al-Qadir al-Jilani in Baghdad (561 AH / 1166 CE) — became the dominant Sufi order in West Africa, spreading from the Sahara southward through the Sahel and eventually to coastal West Africa.
Sufi shaykhs served important social functions in West African society: they mediated between communities, provided amulets and prayers for protection, blessed marriages and births, educated children in Quranic recitation, and trained young men in Islamic learning. Their mobility — moving between communities along trade routes — made them effective vectors for the spread of Islamic practice and identity.
The tradition of the marabout — the West African Islamic scholar-saint who combines Quranic learning with spiritual authority and social service — represents the West African synthesis of Sufi and scholarly Islamic traditions, adapted to the specific social context of societies organized around kinship groups, chieftainship, and trans-Saharan commerce.
Islam's Legacy in West Africa Today
Today, West Africa is home to over 300 million Muslims — the largest concentration of Muslims in sub-Saharan Africa. Countries like Senegal (95% Muslim), Mali (95%), Guinea (85%), Niger (98%), and Mauritania (99%) are among the most Muslim-majority societies on earth by percentage. Nigeria, the most populous country in Africa, has approximately 90 million Muslims (approximately 50% of its population).
The Islamic tradition of West Africa is characterized by the Maliki legal school, widespread Sufi affiliation (particularly Qadiriyya and Tijaniyya), strong traditions of Quranic memorization and recitation, and a scholarly culture that traces itself back through the scholars of Timbuktu and the Saharan madrasas to the great centers of Islamic learning in North Africa and the Middle East. The Quran's promise — "We sent you not except as a mercy to the worlds" (21:107) — has been fulfilled in ways that even the earliest traders who carried the message across the Sahara could not have imagined.
Sources:
- Al-Bakri, Kitab al-Masalik wa al-Mamalik (Book of Routes and Realms), trans. J.F.P. Hopkins
- Ibn Battuta, Rihla (The Travels of Ibn Battuta), trans. H.A.R. Gibb
- Al-Maqrizi, al-Suluk li-Ma'rifat Duwal al-Muluk
- Nehemia Levtzion, Ancient Ghana and Mali (London: Methuen, 1973)
- Nehemia Levtzion and J.F.P. Hopkins (eds.), Corpus of Early Arabic Sources for West African History (Cambridge: Cambridge University Press, 1981)
- Timothy Insoll, The Archaeology of Islam in Sub-Saharan Africa (Cambridge: Cambridge University Press, 2003)
- Ousmane Kane, Beyond Timbuktu: An Intellectual History of Muslim West Africa (Cambridge: Harvard University Press, 2016)
- Shamil Jeppie and Souleymane Bachir Diagne (eds.), The Meanings of Timbuktu (Pretoria: HSRC Press, 2008)
For the Prophetic era, see the Seerah timeline .