It was during one of his imprisonments, in what is today’s Algeria, that he wrote his famous Foreword, (muqaddama) which would become the first volume of his Universal History (kitab al-¢abru).
Ibn Khaldoun’s fame was so widespread even in his own days, that in 1400 he was received as an honored guest with the Tatar ruler, Tamerlane.
The Universal History is a central source for the knowledge of the history of North Africa and the Berber people. But it is his Foreword, in which he outlines his philosophy of history, explaining how dynasties had a tendency to last for a period of 3 generations, after which a new dynasty would wipe it out.
Underlying this theory was the observation that the first generation of a dynasty retained the hard and demanding life of the countryside, while the second generation would be absorbed into the local culture, and the third generation degenerated into decadence, as it acquired all the trappings of urban life.
The weak third generation would to a large degree lack the capacity to defend itself, and was, therefore, an easy victim for the attack of a new rural dynasty.
Ibn Khaldoun saw a strong connection between social change and the climate and the level of economic activity. Societies were held together by social cohesiveness, and according to his theories religion served as a strengthening factor.
1332: Born in Tunis, in a family belonging to the Tunisian elite.
1375: Imprisoned for a period of 4 years, during which he writes his famous Foreword, (muqaddama).
1382: Ibn Khaldoun receives a chair at the al-Azhar University in Cairo, acting as a judge and a teacher of Sharia, Muslim law.
1400: Is received as an honored guest with the Tatar ruler, Tamerlane.
1406: Dies in Cairo.