Timbuktu was the Malian city that became a major center of Islamic learning during the medieval period. Its location near the southern edge of the Sahara helped it grow into a commercial and intellectual crossroads linking West African kingdoms with North African trade routes.
The city expanded during the 13th and 14th centuries and reached a scholarly golden age in the 15th and 16th centuries. Under the Mali Empire and later the Songhai Empire, scholars taught Islamic law, theology, literature, mathematics, astronomy, and medicine. Teaching communities gathered around mosques including Sankore, Djinguereber, and Sidi Yahya.
Timbuktu's intellectual life was supported by a thriving book trade. Families preserved large collections of Arabic and Arabic-script manuscripts covering religion, history, law, science, and everyday affairs. Scholars such as Ahmad Baba became associated with the city's learned tradition.
Fez was also an important Islamic intellectual center, while Gao and Djenné were significant West African cities. However, Timbuktu is the standard answer for this wording because of its exceptional reputation as a medieval center of scholarship and manuscripts.