Esperaunce

An engraving of a flat-roofed town of mud-brick houses with a tapering mosque tower beyond and figures on a roof in front.

Medieval West African Empires · Religion and Belief

The scholar who told the emperor no

After Heinrich Barth, public domain, via Wikimedia Commons.

The Archives/Medieval West African Empires/Religion and Belief

Askia Muhammad offered a scholar a gift and was refused. He came back the following year and was refused again. The story is told to demonstrate the scholar’s virtue, and it also demonstrates that refusal was survivable.

Timbuktu in the sixteenth century had a scholarly establishment of a kind that is not usually associated with West Africa and that was entirely normal there. Several hundred scholars, by the chronicles’ account. A network of teaching circles in the mosques and in private houses. A judiciary drawn from a handful of families. Libraries in the thousands of volumes. And a legal tradition connected by correspondence to Cairo, Fez and Granada.

Those scholars were not state officials in the way the Ottoman ulama were, described in the Ottoman material on these pages. They held appointments, and their authority came from their learning and from their families rather than from the appointment. That gave them room. The chronicles record scholars refusing gifts from rulers, declining offices, and criticising policy.

It also had limits, and when a ruler decided to test them the scholars lost.

❦

On this page

Who they were

The establishment was familial and it can be traced. The Aqit family, of Sanhaja Berber origin, arrived in Timbuktu in the fifteenth century and supplied the chief qadi for several generations. The Baghayogho family, Soninke in origin, supplied imams of the Sankore mosque and a series of distinguished scholars.

The Anda Ag Muhammad family and others held further positions. The most celebrated individual is Ahmad Baba al-Timbukti, born in 1556 into the Aqit family, who wrote some forty works, was deported to Morocco after the conquest, taught there for twelve years, and returned to Timbuktu where he died in 1627. His biographical dictionary of Maliki scholars is still consulted, and his surviving fatwas and treatises are the fullest body of work by any West African scholar of the period.

Around those families circulated a much larger body of students, teachers and copyists, and the town’s economy depended substantially on them.

How teaching worked

The institutional arrangement is frequently misdescribed and needs setting out accurately. There was no university in the western sense. The phrase University of Sankore appears constantly in popular writing and there was no such institution: no corporation, no charter, no faculties, no degrees.

An old photograph of a stepped mud-brick mosque tower above a town of flat roofs and drifting sand.
The Sankore mosque at Timbuktu photographed by Fortier about 1905, with sand banked against its walls. Its courtyard and the houses around it were where the town’s scholars taught.Edmond Fortier, public domain, via Wikimedia Commons.

What existed was a system that was in some ways more demanding. A student attached himself to a teacher and studied a specific text with him, from beginning to end. On completing it, he received an ijaza, a licence authorising him to transmit that text, naming the chain of teachers through whom it had come.

A scholar’s qualifications were therefore a list of texts and the chains attached to them, and a student collected them by moving from teacher to teacher. Teaching happened wherever the teacher was: in the mosque courtyard, in his house, under a tree. The curriculum was the standard Maliki one: Quran and its recitation, hadith, Maliki law, Arabic grammar and rhetoric, theology, and logic, with astronomy, mathematics and medicine available from particular specialists.

Estimates of student numbers in the thousands appear in popular writing. The chronicles do not supply figures, and the town’s total population was probably in the tens of thousands.

The economics of scholarship

How the establishment paid for itself is worth setting out, because a scholarly class needs a material base and Timbuktu’s was unusual. There were no endowed colleges of the kind that funded scholarship in Cairo, Damascus or Fez. No ruler established a madrasa with assigned revenues.

What there was instead was trade. The scholarly families were merchant families, and the two occupations were the same people. A man of the Aqit or Baghayogho line owned property, had shares in caravans, dealt in salt and gold, and taught. His income came from commerce and his standing from learning, and neither depended on a ruler.

That is the material basis of the independence described on this page. A scholar who is paid by the state can be dismissed; a scholar who owns a caravan cannot. It also explains the book trade. Manuscripts were commissioned, copied, bought and sold, and the chronicles record that books were among the most profitable commodities in the Timbuktu market.

Copying was itself an occupation, and a good copyist earned well. The paper came across the desert, described in Gold for salt, and every volume in the libraries represents a camel-load of imported material and months of labour.

The independence

The relationship with power is the subject of this page and the evidence is anecdotal in the strict sense. The Tarikh al-Sudan records exchanges between rulers and scholars. Askia Muhammad offered Muhammad Baghayogho a gift and was refused, and repeated the offer and was refused again.

Scholars declined the office of qadi, which was regarded as spiritually hazardous because it involves judging. A qadi who accepted was expected to be difficult. The chronicles record a chief qadi tearing up a document sent by a ruler, and another releasing prisoners the ruler had confined.

That kind of behaviour was survivable, which is the point. A ruler who needs the legitimacy the scholars confer cannot simply remove them, and a scholarly family whose position rests on learning rather than on office cannot be dismissed from its learning. The relationship was therefore a negotiation, and for most of the Songhai period it worked.

Sunni Ali

The exception demonstrates the limits and it is the reason the chronicles read as they do. Sunni Ali, who took Timbuktu in 1468, did not accept the arrangement. The chronicles describe him killing scholars, driving others into exile at Walata, and treating the establishment with open contempt.

Two men at desks in a darkened room, photographing manuscripts under lights with cameras on stands.
Digitisation at Timbuktu. The conservation programme was running before 2012 and the digital copies are now a substantial part of what exists.Photograph by UNESCO Bureau of Mali, CC BY-SA 3.0 igo, via Wikimedia Commons.

They also describe him as a nominal Muslim who practised traditional rites and consulted diviners, which is discussed in Provinces, governors and a standing fleet. The two accusations are connected in the chronicles’ logic: a ruler who does not properly submit to the religion has no reason to respect its scholars. What that episode establishes is that scholarly independence depended on the ruler’s consent, and that a ruler who withdrew it could do a great deal of damage.

It also establishes why the chronicles are as hostile to him as they are, which is a caution about using them.

The Moroccan conquest

The second and final test came in the 1590s and the scholars lost outright. The Moroccan occupation force demanded submission after Tondibi in 1591. The Timbuktu scholars, led by the Aqit family, resisted. In 1593 the occupying commander, Mahmud Pasha, moved against them.

The chronicles describe scholars arrested in the mosque, several killed in the disturbance, and the leading families deported to Marrakesh. Ahmad Baba was among them. He records the seizure of his library, which he says was 1,600 volumes and was the smallest of his family’s collections, and the loss of most of it in transit.

He spent twelve years in Morocco, where he was released from confinement, taught, and was widely consulted, and returned to Timbuktu in 1607. The scholarly tradition continued afterwards and the town’s position as a major centre did not recover.

Ahmad Baba on slavery

One of his works deserves separate attention because of what it argues. In 1615 he wrote a response to questions from a Moroccan correspondent about who among Black Africans might lawfully be enslaved. His answer is a legal one and it is unambiguous on the principle. The cause of enslavement is unbelief, not colour. A person who is Muslim may not lawfully be enslaved, whatever their origin. A person who is not may be, whatever their origin.

An engraved portrait of a bearded man in a turban pointing with one hand.
A possible portrait of Ahmad al-Mansur of Morocco, from Andre Thevet’s book of famous men of 1584. Al-Mansur sent the army that destroyed Songhai at Tondibi in 1591.Andre Thevet, public domain, via Wikimedia Commons.

He then lists the Muslim peoples of West Africa by name, including the Songhai, the Fulani, the Bornu and others, and states that enslaving them is unlawful. He is explicit that Moroccan traders were enslaving Muslims and that this was a serious offence. He also, and this has to be stated, upholds the lawfulness of enslaving non-Muslims, which is the position of the Maliki law he was applying.

The text has been read in two ways: as an early argument against the racial basis of slavery, which it is, and as a defence of the institution on religious grounds, which it also is. Both readings are correct and the document is the most important West African contribution to a debate that was about to become very much larger.

The other centres

Timbuktu is the name everybody knows and it was one of several, which is worth stating because the concentration on it distorts the picture. Djenne had its own scholarly establishment, older in some respects, and the Tarikh al-Sudan says that Djenne’s scholars were as numerous and as distinguished. Gao, as the Songhai capital, had a qadi and a body of scholars attached to the court.

An old photograph of a narrow street between tall mud-brick houses.
A street in Djenne photographed by Fortier about 1905. The town was a centre of Islamic learning as well as trade, and its houses belonged to merchant and scholarly families.Edmond Fortier, public domain, via Wikimedia Commons.

Walata, further west, had been the major centre in the Mali period and declined as Timbuktu rose. Further east, Kano, Katsina and the Bornu capital each supported scholarly communities, and Bornu’s connection ran to Cairo and the Hijaz directly. And in the countryside, rural teaching centres, the zawiya, associated with particular scholarly lineages, taught the basics to far larger numbers than the towns ever did. Several of those lineages, notably the Kunta of the western Sahara, were more influential in the long run than the urban establishment.

Timbuktu is prominent partly because its chroniclers wrote its history and partly because a European myth about it developed later, discussed in Timbuktu as a building.

What was written

The intellectual output deserves a paragraph, since the point of the establishment was to produce scholarship. Law dominates: commentaries, fatwas, legal handbooks, and works on inheritance and on commercial transactions. Biography is the second genre, and Ahmad Baba’s dictionary of Maliki scholars is the major example.

History: the two Timbuktu chronicles, discussed in The chronicles of Timbuktu. Theology, Arabic grammar, and poetry in Arabic. And a body of practical and scientific writing: astronomy for calendrical and prayer-time purposes, mathematics for inheritance calculation, and medicine.

Almost all of it is in Arabic, and some is in African languages written in Arabic script, a practice called ajami, which produced literatures in Fulfulde, Hausa, Songhai and Soninke.

What the tradition was

A closing assessment, because this material is subject to both inflation and dismissal. The inflated version has a great university with thousands of students, world-leading scientific research, and an African Oxford in the desert. The dismissive version has a provincial outpost copying Maliki commentaries.

What the evidence supports is a serious, connected, productive centre of Islamic learning, of a kind that existed in dozens of cities across the Muslim world, distinguished by being further from the centres than any of them and by being sustained by a West African society out of its own resources. Its scholars corresponded as equals with Cairo and Fez, and Cairo and Fez consulted them. That is not a myth and it does not need one, and the reason it needs saying is that for a long period the claim that any such thing had existed in sub-Saharan Africa was not believed.

Sources

Ancient

  • Ahmad Baba al-Timbukti, Nayl al-Ibtihaj and Mi’raj al-Su’ud on slavery
  • Tarikh al-Sudan of al-Sadi and Tarikh al-Fattash
  • The Timbuktu manuscript collections, principally the Mamma Haidara and Ahmad Baba libraries

Modern

  • Elias Saad, Social History of Timbuktu, 1983
  • John Hunwick, Timbuktu and the Songhay Empire, 1999, and Arabic Literature of Africa
  • John Hunwick and Fatima Harrak, edition of Ahmad Baba’s Mi’raj al-Su’ud, 2000
  • Bruce Hall, A History of Race in Muslim West Africa, 2011
  • Ousmane Kane, Beyond Timbuktu, 2016

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.

© 2026 Esperaunce. All rights reserved.