community after 100 years or in the same era. Thus, Ibn Khaldun was the one who laid the true foundations of sociology. Ibn Khaldun was considered the founder of sociology and the first to put it on its modern foundations, and he reached brilliant theories in this science about the laws of urbanism, the theory of asabiyyah, the building of the state and the stages of its construction and its downfall. His views and theories preceded what was reached several centuries later by a number of famous scholars, such as the French scientist Auguste Comte.