In the 8th and 9th centuries, places like Baghdad and Fez became the intellectual centers of the world.