An inveterate adventurer and renowned intellectual, Ibn Khaldun was born into a family of ascendant Andalusian Arabs who had immigrated to North Africa. There, present day Tunisia, he received a traditional Islamic education until his parents died from the plague. At the time of their deaths, he was just seventeen years old. On his own, the young and resourceful Ibn Khaldun exploited personal relationships to secure an administrative position at court and thus began a career as an itinerant statesman. Time and time again, Ibn Khaldun landed in prison for his role in conspiracies against various ruling dynasties, only to be released by their heirs. Envoys and grandees recognized his remarkable intelligence and the value of his council. His reputation preceded him, and many dignitaries openly entreated him to join their court. Serving various dynasties, Ibn Khaldun held many important offices, like diplomat, court advisor, and prime minister. But he eventually grew weary of the hazards of palace intrigue and sought instead a more reclusive lifestyle.
Ibn Khaldun retired to the safety of a Berber tribe in Algeria, where he composed al-Muqaddimah, or Prolegomenon, an outstanding work of sociology and historiography. Published in 1377, he theorized in al-Muaqddimah that tribal ‘asabiyah, roughly translated as “social solidarity,” is often accompanied by a novel religious ideology that helps a previously marginalized group of people, usually from the desert, rise up and conquer the city folk. Once ensconced in power, these desert peoples evolved into a grand civilization, but ‘asabiyah contained within it destructive elements that could precipitate their collapse. Known for this Cyclical Theory of History, Ibn Khaldun posited that, seduced by the wiles of urban culture, the dominant group would over time become soft and enter into a period of decay, until a new group of desert peoples conquered them, when the process would begin anew. This theory applies to the development of Islamic history discussed throughout this chapter.