Timbuktu also emerged as a centre for religion and learning: prior to the colonisation of much of Afrika, the city was a fountain of knowledge in the fields of physics, astrology, and technology, and almost the entire population could read and write.