Timbuktu grew where the desert trade met the Niger, and its learning grew with the trade, because the same families financed both. Teaching was organised around scholars rather than institutions: a student read a text with a master, received a licence to transmit it, and moved on to the next, and the mosques of Sankore, Djinguereber and Sidi Yahya housed such circles rather than functioning as a university in the European sense. Describing Sankore as an ancient university is a modern shorthand that flatters the city while obscuring how it actually worked.
The city's chronicles, written in Arabic in the seventeenth century, record the scholarly lineages, the appointments of judges and imams, and the fortunes of the Songhay empire that ruled it. The best known figure is Ahmad Baba, jurist and author of dozens of works, who was deported to Marrakesh after the Moroccan invasion of 1591 and taught there before being allowed home. One of his opinions, written in reply to questions from the Saharan trade, held that a person's enslavement could not be justified by their origin but only by unbelief, and it is cited to this day in discussions of slavery in Islamic law.
What survives of that world is paper. Tens of thousands of manuscripts on law, theology, grammar, astronomy, medicine, poetry and commerce remained in family hands, passed down and often kept privately, alongside the collection of the state institute named after Ahmad Baba. They are the strongest single refutation of the idea that West Africa before the colonial period had no written intellectual tradition.