Ibn Khaldun is the greatest historian and sociologist of the medieval Islamic world, developing in the Muqaddimah a cyclical theory of history based on group solidarity that anticipates modern sociology. He has been called the father of the social sciences.