 This shift in power helped Ez-Zitouna to flourish and become one of the major centres of Islamic learning, and Ibn Khaldun, the first social historian in history was one of its products.The flourishing university attracted students and men of learning from all parts of the known world at the time.Along with theology; mainly the Qur'an, the university taught jurisprudence, history, grammar, science and medicine.