In 1401, a chief judge in Mamluk Cairo was lowered by rope over the walls of a besieged Damascus to go negotiate with the man laying siege to it. Ibn Khaldun spent the following seven weeks in conversation with Timur — Tamerlane — talking history, geography, and the Maghreb with a conqueror who was, in that exact moment, building the kind of dynasty Ibn Khaldun had spent the previous two decades theorizing about. It's one of the strangest meetings in medieval history: a man who had just written down why every dynasty eventually collapses, sitting across from a man actively founding one.
By then, Ibn Khaldun had already lived the pattern he described more times than most historians ever get to observe directly. Courts in Tunis, Fez, and Granada had employed him and then dismissed him, imprisoned him, and reshuffled him across the political map of 14th-century North Africa and Andalusia. In 1375, rather than take another court post, he withdrew with his family to a fortress in the Algerian desert and spent four years writing down what two decades of watching dynasties rise and fall had taught him: that the loyalty holding any state together — what he called 'asabiyyah — has a predictable lifespan, roughly three or four generations, regardless of which family happens to be on the throne when it finally runs out.
This page is about that theory, and about a career that gave him an unusually direct, often uncomfortable vantage point from which to build it — six terms as a judge, at least one imprisonment, and one memorable rope over a city wall.
Core Philosophy
Ibn Khaldun's central claim was that political power isn't sustained by lineage, religion, or law on its own, but by 'asabiyyah — the group cohesion a people develops under shared hardship. That cohesion is what wins power in the first place, and its slow, predictable decay across roughly three or four generations is what eventually loses it, regardless of who happens to be sitting on the throne when it finally gives out. He didn't write this as a warning aimed at any one dynasty. He wrote it as a mechanism that applied equally to all of them, including whichever one happened to be paying him at the time.
He didn't ask which dynasty would fall. He worked out the schedule every dynasty was already running on.
How They Thought
Thinking Process
- 01
Live inside the cycle before you can name it
Decades spent serving Hafsid Tunis, Marinid Fez, and Nasrid Granada — and changing allegiance amid coups and imprisonments along the way — gave Ibn Khaldun first-hand exposure to the mechanics of dynastic rise and fall from inside the court, not from a history book.
- 02
Withdraw from the cycle to see its shape
In 1375 he retreated with his family to Qal'at Ibn Salama, a fortress in what is now Algeria, deliberately stepping outside the political churn he'd spent decades inside of. The four years of relative isolation that followed are when he drafted the Muqaddimah.
- 03
Refuse to just transmit the chronicle — explain the cause
He explicitly criticized earlier historians for copying reports uncritically, without asking whether the events they described were even plausible. A historian's job, he argued, was to explain why a dynasty rose or fell, not simply to record that it had.
- 04
Test the theory against a live specimen
In 1401, serving as a chief judge under the Mamluks, Ibn Khaldun was lowered by rope over the walls of besieged Damascus to negotiate with Timur. He spent seven weeks in conversation with a conqueror actively building a new empire on exactly the raw, hardship-forged cohesion his own theory said would eventually soften into court life and decay.
- 05
Return to the cycle, eyes open
After finishing the Muqaddimah, he didn't stay in retreat. He went back into court service in Cairo, serving as chief Maliki judge six separate times under the Mamluks — applying, whether he framed it this way or not, the same theory of unstable power to his own repeatedly interrupted career.
He didn't theorize about power from a library. He theorized about it from six different jobs, most of which ended in dismissal.
Transferable Frameworks
Mental Models
Asabiyyah: Cohesion Is the Real Currency of Power
Wealth, lineage, and religious legitimacy all mattered to Ibn Khaldun's account of dynastic power — but none of them, on their own, could hold a state together the way group cohesion forged under shared hardship could.
Power Decays on a Schedule, Not by Accident
The loss of asabiyyah across roughly three to four generations wasn't, in his account, a run of bad luck or bad rulers. It was the predictable result of raising each successive generation further from the hardship that created the group's original cohesion.
History Needs a Cause, Not Just a Chronicle
Ibn Khaldun treated the uncritical copying of prior chroniclers as a professional failure, not a neutral method — insisting a historian test a report's plausibility and explain its cause before repeating it.
Tax Too Much and the Revenue Itself Shrinks
In the Muqaddimah he observed that light taxation early in a dynasty encourages enterprise and raises revenue, while heavy taxation late in a dynasty discourages it and revenue falls — an observation the economist Arthur Laffer has cited as a historical antecedent of his own tax curve.
Step Outside the System to See Its Shape
His four years at Qal'at Ibn Salama weren't a retirement — they were a deliberate exit from the court politics he'd spent decades inside, taken specifically to gain the distance needed to describe the pattern clearly.
Study Power Up Close, Even the Power That Might Kill You
Being lowered over Damascus's walls to negotiate with the man besieging it was not a safe research trip. He took the meeting anyway, treating a live conqueror as data his theory of rising dynasties couldn't get anywhere else.
A Desert Fortress, After Two Decades of Watching Courts Fall
In 1375 He Had Only Lived the Pattern. By 1377 He Had Written It Down.
A Career of Dismissals, No Theory Yet
Ibn Khaldun has already served and been dismissed by courts in Tunis, Fez, and Granada, and briefly imprisoned amid political intrigue in Fez. He has lived through the rise and fall of patrons repeatedly but has not yet turned that experience into a general account of why it keeps happening.
The Muqaddimah, Drafted in Isolation
Two years into his retreat at the fortress of Qal'at Ibn Salama, he completes the first draft of a full theory of dynastic rise and decline — the concept of asabiyyah and its generational decay — that explains every court he had just spent two decades serving and losing his position in.
He didn't discover the pattern by studying history from a distance. He discovered it by living through six iterations of the same court cycle first, and only then stepping far enough back to see that it was one pattern, not six unrelated misfortunes.
The Output
Big Ideas
The Muqaddimah (1377)
The introductory volume to his universal history, laying out his theory of society, economics, and the generational rise and fall of dynasties. The historian Arnold Toynbee called it 'the greatest work of its kind that has ever yet been created by any mind in any time or place.'
The Tax Curve, Six Centuries Before Laffer
His observation that tax revenue rises with moderate taxation but falls when taxation grows too heavy is cited by name by economist Arthur Laffer as a historical forerunner of the modern Laffer curve.
Six Appointments as Qadi of Cairo
As chief Maliki judge under the Mamluk sultans, Ibn Khaldun was appointed and dismissed roughly six separate times — living out, in his own final decades, the same instability of power he had spent the Muqaddimah explaining.
The Meeting With Timur (1401)
Lowered by rope over the walls of besieged Damascus, Ibn Khaldun spent seven weeks in conversation with Timur, later writing a detailed account of North African geography and history for the conqueror — a rare direct encounter between a theorist of empire and an empire actively being built.
The Life, Briefly
Timeline
- 1332
Born May 27 in Tunis, into a family of Arab origin that had held high office in Seville, in Islamic Spain, before emigrating to Tunisia in the century after the city fell to Castile in the Reconquista.
- 1348–1349
The Black Death reaches Tunis and kills both of his parents, along with many of his early teachers — a loss that also cuts off much of his formal education before adulthood.
- 1352
Begins his court career under the Hafsid dynasty in Tunis in his late teens, taking on administrative and secretarial posts.
- 1354
Moves to Fez to serve the Marinid court, entering a period of frequent moves between rival North African and Andalusian courts that will define his career for the next two decades.
- 1357–1359
Imprisoned for roughly two years in Fez after becoming entangled in court intrigue against the Marinid sultan.
- 1362
Moves to Granada to serve the Nasrid court under Muhammad V, whom he had earlier helped regain his throne from exile.
- 1364
Sent by Muhammad V on a diplomatic mission to Pedro the Cruel of Castile in Seville. Pedro reportedly offers to restore his family's ancestral estates if he stays; he declines and returns to Granada, where the sultan rewards him with the village of Elvira.
- 1365
Returns to North Africa, serving further, shorter-lived court positions in Bougie and Tlemcen amid continued political instability across the region.
- 1375
Withdraws with his family to the fortress of Qal'at Ibn Salama, near present-day Frenda, Algeria, to write without the interruptions of active court service.
- 1377
Completes the first draft of the Muqaddimah, laying out his theory of asabiyyah and the generational rise and fall of dynasties, after roughly five months of concentrated writing during the retreat.
- 1378
Ends the four-year retreat and returns to Tunis, bringing the completed Muqaddimah draft and continuing work on the larger history it introduces, Kitab al-'Ibar.
- 1382
Travels to Cairo, where Mamluk patronage and its teaching institutions offer a steadier base than the fractured Maghreb courts, and remains in Egypt for the rest of his life.
- 1384
Appointed chief Maliki qadi (judge) of Cairo for the first time under the Mamluk sultanate — the first of roughly six such appointments and dismissals over the following two decades.
- 1387
Performs the Hajj pilgrimage to Mecca.
- 1401
Serving under the Mamluks, is lowered by rope over the walls of besieged Damascus to negotiate with Timur, spending seven weeks in conversation with him before returning to Cairo.
- 1406
Dies in Cairo on March 17, at age 74, during his sixth term as chief Maliki qadi.
From a court secretary in his twenties to a judge dismissed and reappointed six times in his sixties — he didn't just describe the cycle. He lived every stage of it, repeatedly, in his own career.
Go Deeper
Books & Resources
The Muqaddimah: An Introduction to History — Ibn Khaldun, translated by Franz Rosenthal
The standard modern English translation of his own foundational text, and the primary source for the theory of asabiyyah described on this page.
Ibn Khaldun: An Intellectual Biography — Robert Irwin
A modern biography that situates his life and ideas within the political chaos of the 14th-century Maghreb, useful context for how directly his theory grew out of his own career.
Al-Ta'rif bi Ibn Khaldun (The Autobiography) — Ibn Khaldun
His own account of his life and court career, the primary source for most of the biographical details on this page, including the Qal'at Ibn Salama retreat and the meeting with Timur.
Scholarship Notes
- Ibn Khaldun's generational model is often summarized as three or four stages depending on the translator and later commentator; the four-stage wheel above follows the most commonly cited modern summary of his argument in the Muqaddimah rather than a single canonical numbered list from the original Arabic.
- Several early-career dates — the exact length of his imprisonment in Fez, and the precise years of some minor court postings — vary slightly between biographers. The overall sequence is corroborated by his own autobiography, al-Ta'rif bi Ibn Khaldun, though as a self-authored account it is not an independent check on his own version of events.
- The connection to Arthur Laffer's tax curve is drawn from Laffer's own writing crediting Ibn Khaldun as a historical antecedent, not from any claim that the Muqaddimah anticipated modern supply-side economics as a complete theory.
Chanakya wrote the Arthashastra as an active architect of the empire he was building alongside Chandragupta — a strategist's manual for winning and keeping power, written from inside a rise. Ibn Khaldun wrote the Muqaddimah from the opposite vantage point: not as someone building a dynasty, but as someone who had served and been dismissed by half a dozen of them, cataloguing exactly how each one would eventually fail.
Both men turned direct experience of power into a permanent text that outlasted every regime they served. But Chanakya's book assumes the reader can win. Ibn Khaldun's assumes the reader, and everyone the reader serves, eventually won't — including, by his own theory's logic, whichever Mamluk sultan happened to be paying his salary as chief judge of Cairo when he wrote it.