
Medieval West African Empires · Religion and Belief
The pilgrimage as foreign policy
attributed to Abraham Cresques, public domain, via Wikimedia Commons.
The Archives/Medieval West African Empires/Religion and Belief
Over six thousand kilometres each way, eighteen months, across the Sahara twice. Several rulers did it, and every one of them came back with something besides merit.
The pilgrimage to Mecca is one of the five obligations of Islam, incumbent on every Muslim with the physical and financial capacity to perform it. From Morocco it is a long journey. From the Niger bend it is one of the longest undertaken by anybody in the medieval world.
The route ran north across the Sahara to the Maghreb or northeast through the central desert, then east along North Africa to Cairo, then across Sinai and down through Arabia. Over six thousand kilometres each way. Eighteen months at least, frequently more. Two desert crossings.
West African rulers did it anyway, repeatedly, from the eleventh century onwards, and their subjects did it in smaller numbers continuously. And every documented royal pilgrimage was also something else: a diplomatic mission, a display of wealth, a recruitment expedition and a claim to legitimacy that could not be made any other way.
❦On this page
The obligation
The religious content should be stated first, because it is easy to reduce this to politics and that would be wrong. The hajj is a duty. A Muslim ruler who can perform it and does not is failing in an obligation his own scholars will notice.
Performing it confers the title al-Hajj, which is used afterwards and which is a mark of standing in any Muslim society. And the experience itself is the point of the exercise for the person undertaking it, which the sources sometimes forget to mention and which was presumably the primary motive. So the argument here is not that these journeys were cynical. It is that they were simultaneously several things, and that the rulers who made them were perfectly aware of all of them.
The route
The physical journey is worth setting out, because the difficulty is the thing that makes the rest significant. From the Niger the first stage was north across the Sahara, either by the western route through Walata and Taghaza to southern Morocco, or by the central route through Tuat and the Fezzan. Musa took the central route through Tuat, which is the shorter way east and the harder crossing.

That stage alone was two to three months of desert, and it is the crossing described in Gold for salt. From North Africa the route ran east along the Mediterranean littoral to Cairo, which was the assembly point for the whole western Islamic world. From Cairo the great pilgrim caravan went east across Sinai and down the Red Sea coast road to Medina and Mecca, under military escort, in a convoy the Mamluk sultanate organised annually.
The return reversed it, and the timing was governed by the date of the hajj itself, which moves through the solar year on the lunar calendar, so a pilgrim might face the Sahara in the wrong season. A round trip of eighteen months is the best case. Musa was away nearly two years, and pilgrims who stopped to study were away for a decade or more.
The early pilgrims
The sequence is longer than the famous example and it begins early. The ruler of Takrur, on the Senegal, is recorded as making the pilgrimage in the eleventh century. Mansa Uli, son of Sundiata, is said by Ibn Khaldun to have gone during the reign of the Mamluk sultan Baybars, which places it in the 1260s or 1270s.
Sakura, a former slave who took the Mali throne, made the pilgrimage and was killed on the return journey at Tajura, and his body was brought back to Mali, which Ibn Khaldun records. Mansa Musa in 1324 is the famous one, described in The man who broke the Egyptian market. Askia Muhammad of Songhai in 1496 to 1498 is the other major example, described in Provinces, governors and a standing fleet.
And the practice continued: rulers of the Hausa states, of Bornu and of Fulani states made the journey through the following centuries.
What they brought back
The returns are the most consequential part and they can be itemised. Scholars. Both Musa and Askia Muhammad returned with religious scholars who settled in their territories, and the transmission of Maliki law and of Arabic scholarship into West Africa ran substantially through these recruitments.
Books. Manuscripts were bought in Cairo and in the Hijaz and carried home, and they are the foundation of the libraries described in The manuscripts of Timbuktu. Buildings and builders. Musa returned with al-Sahili from Granada, credited with the audience hall at the capital and the Djingareyber mosque at Timbuktu.
Legal opinions. Askia Muhammad put questions to al-Suyuti in Cairo and to al-Maghili, and the written responses shaped Songhai policy. Titles. Askia Muhammad obtained appointment as caliph of the Sudan from the shadow Abbasid caliph in Cairo, which was worth nothing in law and a great deal in standing.
And recognition. A ruler who has been received by the Mamluk sultan is a sovereign in the eyes of every Muslim state, which no amount of domestic ceremony can achieve.
The diplomacy
The political dimension deserves separate treatment because it is where the foreign policy happens. Cairo was the hinge. Every West African pilgrim route passed through it, and the Mamluk sultanate was the dominant Muslim power of the period.

Being received there meant entering the diplomatic system of the Islamic world. Al-Umari, whose account of Mansa Musa is discussed elsewhere in these pages, was an Egyptian chancery official, and the reason he knew so much about Mali is that the chancery kept records of the embassy. Correspondence followed. Mali and later Songhai exchanged letters and envoys with Morocco, with Egypt and with the Ottomans.
And the pilgrimage gave a ruler information. Eighteen months of travel through the major cities of the Muslim world, meeting officials, scholars and merchants, is an intelligence-gathering exercise no other activity could match. Askia Muhammad’s reforms on his return, described elsewhere, are the clearest demonstration: a ruler who has seen how Egypt is administered and comes home to reorganise his own state.
What it cost
The expense was crippling and it is part of the explanation for why some rulers did not go. Musa’s spending in Cairo was so heavy that he borrowed on the return journey at bad rates. The retinues were enormous, and everybody in them had to be supplied across two desert crossings.
Gifts were obligatory at every stage: to the rulers whose territory was crossed, to the guardians of the holy cities, to the poor, and to the scholars who supplied advice. And the ruler was away for a year and a half, in a political system where absence invited usurpation. Sakura was killed on the way home. Askia Muhammad left a regent and returned to a stable throne, which was fortunate. Several West African polities experienced coups during a ruler’s absence.
That risk is the strongest evidence that the journey was not optional in the rulers’ own minds. A man who leaves his throne for eighteen months and crosses the Sahara twice is doing something he considers necessary.
Other rulers, other routes
The Mali and Songhai pilgrimages are the famous ones and they were not the only pattern. Bornu, on Lake Chad, had a longer and more continuous relationship with the eastern Muslim world than the Niger states did, because its route ran northeast through the Fezzan to Tripoli and Egypt rather than northwest. Its rulers made the pilgrimage from the eleventh century, corresponded with the Mamluks and later with the Ottomans, and Mai Idris Alooma in the sixteenth century obtained Turkish musketeers and military instructors as a direct result of that diplomacy.
That is the clearest single case of the pilgrimage producing a concrete military return, and it is the reason Bornu adopted firearms when Songhai did not, which is discussed in Tondibi. The Hausa states sent pilgrims through the same eastern corridor, and the Kano Chronicle records rulers making the journey. And in the nineteenth century the Fulani jihad leaders and their successors continued it, with the pilgrimage becoming a route by which reformist ideas from the Arab world reached West Africa directly.
A map of the pilgrimage routes is therefore also a map of where ideas and technology entered the region, and the differences between the western and eastern corridors explain a good deal about why the states along them developed differently.
The ordinary pilgrim
Below the royal pilgrimages ran a continuous traffic that is much less documented. Scholars travelled to study in Cairo and Fez, and several West Africans are recorded teaching in the eastern Muslim world. Merchants combined trade with pilgrimage, which is the normal pattern everywhere and which made the journey commercially viable.

And ordinary pilgrims went, in small numbers, over a route that many did not survive. Communities of West African pilgrims established themselves along the way, and there have been West African quarters in Cairo and in the Hijaz for centuries. Some never returned. The settled West African populations in Sudan, in Chad and in the Hijaz include descendants of pilgrims who stopped and stayed.
That traffic continued into the modern period. Pilgrims were still crossing Africa on foot in the twentieth century, working their way east over years, and the practice only ended with air travel.
Timbuktu's connection
The scholarly consequence is the one that lasted longest and it ran both ways. West African scholars went to Cairo, studied at al-Azhar, and came back. Ahmad Baba, the great Timbuktu jurist, spent his exile in Marrakesh teaching Moroccan scholars, described in Tondibi, and his opinions were sought from across the Maghreb.

North African and Egyptian scholars corresponded with Timbuktu, and the legal questions sent from West Africa and the answers returned form a substantial body of literature. Books moved in quantity, and the Timbuktu libraries hold works copied in Cairo, in Fez and in Granada alongside locally composed ones. That is a genuine intellectual network, operating across the Sahara, in both directions, for five centuries, and it is the thing the pilgrimage built.
What the journeys mean
A closing assessment, because the pilgrimages are the clearest evidence against an old assumption. The received picture of medieval West Africa was of an isolated region, cut off by the desert, receiving occasional influences from outside and otherwise static. The pilgrimage record does not fit that. West African rulers travelled to Egypt and Arabia, were received as sovereigns, recruited scholars and architects, bought books, obtained legal rulings, and came home and used all of it.
Their subjects travelled the same route continuously for eight hundred years. The Sahara was a barrier in the sense that an ocean is a barrier: hard to cross, dangerous, expensive, and crossed regularly by anybody with sufficient reason. The reason, for a Muslim ruler of the western Sudan, was an obligation he could have evaded and did not.
Sources
Ancient
- Al-Umari, Masalik al-Absar, on Mansa Musa in Cairo; Ibn Khaldun on the Mali pilgrimages
- The Tarikh al-Sudan on Askia Muhammad’s pilgrimage; al-Maqrizi
- The responses of al-Suyuti and al-Maghili to questions from West African rulers
Modern
- Nehemia Levtzion, Ancient Ghana and Mali, 1973
- John Hunwick, Timbuktu and the Songhay Empire, 1999
- Michael Gomez, African Dominion, 2018
- Nehemia Levtzion and Randall Pouwels, editors, The History of Islam in Africa, 2000
- Ghislaine Lydon, On Trans-Saharan Trails, 2009
New civilisations are announced by email as they are written.
Passages may be quoted with my name and a link to the page, and copies may be handed out in a classroom, lecture or study group as long as the site’s name stays on them. Please ask first before republishing a whole essay or Archives page, translating one, or using the writing in anything that is sold. Use for training machine-learning systems is not permitted. The details are on Using this site.
Images are credited individually; rights remain with their holders.