$2.99 Medieval Thinker

Ibn Khaldun

The Man Who Discovered History

Born 1332
Died 1406
Region North Africa / Mamluk Egypt
DISCOVER

In the autumn of 1375, a middle-aged scholar arrived at a remote mountain fortress in western Algeria and asked the local Berber tribe for protection. He had served five different rulers across three countries. He had been imprisoned, honoured, expelled, and restored so many times that the cycle had become its own education. He had watched courts collapse, sultans fall, and ambitious men destroy themselves in pursuit of the very power that had just consumed them. Now, at the age of forty-three, Abu Zayd Abd al-Rahman ibn Khaldun was done. He wanted only silence and time. In that silence, alone at Qalʼat Ibn Salama with a view over the Atlas foothills, he would write the book that made him immortal.

“At the beginning of a dynasty, taxation yields a large revenue from small assessments. At the end of the dynasty, taxation yields a small revenue from large assessments.”

Lifespan

1332–1406

Born in Tunis on 27 May 1332 into an Andalusian scholarly family that had fled the Christian reconquest of Seville a century before. He died in Cairo on 17 March 1406, one month after his sixth appointment as Chief Maliki Judge of Egypt. Seventy-four years that spanned the plague-ravaged, politically fractured Islamic world of the fourteenth century.

Rulers Served

5+

Ibn Khaldun served, was imprisoned by, and was expelled from the courts of the Hafsid sultans of Tunis, the Marinid sultans of Morocco, the Zayyanid rulers of Tlemcen, the Nasrid emirs of Granada, and the Mamluk sultans of Egypt. Each court taught him something about the mechanics of power. Each betrayal gave him data.

Muqaddimah

~6 months

The entirety of the Muqaddimah — the founding text of sociology, historiography as a science, and political economy — was written in approximately six months at Qalʼat Ibn Salama between 1375 and 1377. In the standard Franz Rosenthal translation it runs to three volumes and roughly 1,600 pages.

Weeks with Tamerlane

5–7

In January–February 1401, during the Timurid siege of Damascus, Ibn Khaldun was lowered over the city wall in a basket and spent five to seven weeks in the camp of Timur (Tamerlane). The greatest historian of the age and the greatest conqueror of the age held daily conversations about North African geography, the nature of asabiyyah, and the reliability of the historian al-Tabari.

Known For

The Muqaddimah, the cyclical theory of history, the concept of asabiyyah, founding sociology and historiography as disciplines

Defining Events

Ibn Khaldun autograph — folio 7a of the Muqaddimah, MS Atıf Efendi 1936, his own hand
1375–1377

The Muqaddimah

Exhausted by decades of political intrigue, Ibn Khaldun retreated to the mountain fortress of Qalʼat Ibn Salama in western Algeria under the protection of the Banu Arif tribe. In six months of concentrated isolation he wrote al-Muqaddimah — originally an introduction to his universal history Kitab al-ʿIbar, but swiftly recognised as an independent monument. He was the first thinker to propose a scientific, sociological explanation for why civilisations rise and fall: not divine punishment, not moral decay, but measurable dynamics of group cohesion, sedentary luxury, and the inevitable weakening of the asabiyyah that had forged a dynasty in the first place. Arnold Toynbee called it “undoubtedly the greatest work of its kind that has ever yet been created by any mind in any time or place.”

Ibn Khaldun — drawing by Khalil Gibran, the Lebanese-American poet and artist
c. 1377

Asabiyyah: The Theory That Explains Everything

Asabiyyah — group feeling, social cohesion, the collective will to act and endure together — is the central concept of the Muqaddimah. Ibn Khaldun argued that political power does not originate in wealth, ideology, or formal institutions. It originates in asabiyyah: the capacity of a group forged under conditions of scarcity and shared struggle to act as one. Desert peoples have it; sedentary urban populations lose it through comfort and luxury. A dynasty rises when a people with strong asabiyyah conquers and builds. It falls — in roughly three to four generations, approximately a hundred and twenty years — when the luxury of their own success erodes the group feeling that created them. Then a new people with stronger asabiyyah sweeps in, and the cycle repeats. It was the first scientific theory of political history ever written.

Timur (Tamerlane) — earliest known portrait, from a Timurid genealogy manuscript, Samarkand, c. 1405–1409
1401

The Meeting with Tamerlane

In January 1401, Tamerlane’s forces besieged Damascus. Ibn Khaldun was in the city. Rather than wait for the walls to be breached, he arranged to be lowered over them in a basket and rode to the Timurid camp to negotiate. For thirty-five days he sat across from Timur — the man who had destroyed Delhi, Baghdad, and would destroy Damascus within weeks. He described Timur in his autobiography: “Highly intelligent and very perspicacious, addicted to debate and argumentation… between sixty and seventy years old.” Timur asked him to write a detailed account of the geography of North Africa. Ibn Khaldun complied. In return he received safe-passage documents. He used the time to observe the greatest conqueror of the age at close range — empirical data for the man who had made the rise and fall of conquerors his life’s work.

Timeline

1332

Born in Tunis

Born on 27 May 1332 (1 Ramadan 732 AH) in Tunis, capital of the Hafsid Sultanate. His family were Andalusian Arabs of Yemeni origin who had fled Seville for North Africa a century earlier when the Christian reconquest made their position untenable. His full name — Abu Zayd Abd al-Rahman ibn Muhammad ibn Khaldun al-Hadrami — encoded generations of genealogy in its syllables.

1348–49

The Black Death

The plague arrived in Tunis when Ibn Khaldun was sixteen. It killed both his parents, most of his teachers, and a third of the city’s population. He would later write about it in the Muqaddimah with cold sociological precision — measuring how it depopulated cities, collapsed tax revenues, and accelerated the fall of dynasties. The catastrophe shaped everything: it gave him his method, his themes, and his emotional distance from the world.

1352–60

First Political Appointments

After brief government service in Tunis, Ibn Khaldun moved to Fez and joined the chancery of Marinid Sultan Abu Inan Faris. He was twenty. Within two years, suspected of conspiracy, he was imprisoned by the same sultan who had appointed him. He spent nearly two years in a Marinid jail before being released on the sultan’s death. It was the first of many lessons in how quickly a court’s favour could become a cage.

1363–65

Diplomat to Pedro the Cruel

Now serving the Nasrid court of Sultan Muhammad V of Granada, Ibn Khaldun was sent as envoy to Pedro I of Castile — Pedro the Cruel — to negotiate a peace treaty. He succeeded. Pedro offered to restore the family’s ancestral Andalusian estates, confiscated a century before. Ibn Khaldun declined and returned to Granada. He had walked the streets of Seville, the city his family had fled, and refused it.

1375–77

The Muqaddimah

Exhausted by court life, Ibn Khaldun retreated to the fortress of Qalʼat Ibn Salama in western Algeria. In approximately six months of isolation he composed the Muqaddimah — the first systematic theory of history, society, economics, and political change ever written. He was forty-three years old. He called this the most productive period of his life.

1382

Arrives in Cairo

At the age of fifty, Ibn Khaldun sailed from the Maghreb to Alexandria. He was received in Cairo by Mamluk Sultan Barquq, appointed professor at al-Azhar — the most prestigious institution of Islamic learning in the world — and within two years was made Chief Maliki Judge of Egypt. He would be appointed and removed from that position five more times before his death.

1401

Tamerlane’s Camp

During the Timurid siege of Damascus, Ibn Khaldun was lowered over the city walls in a basket. He spent thirty-five days in Tamerlane’s camp, conducting daily interviews with the conqueror. They discussed North African geography, the theory of asabiyyah, al-Tabari’s reliability as a historian, and the nature of the caliphate. Ibn Khaldun wrote an account of the Maghrib at Tamerlane’s request. Damascus was sacked and burned days after he left.

1406

Death in Cairo

On 17 March 1406, one month after his sixth appointment as Chief Maliki Judge, Ibn Khaldun died in Cairo. He was buried in the Sufi cemetery near Bab al-Nasr. He had written in the Muqaddimah that all dynasties carry the seeds of their own dissolution — that the very success of a civilisation begins the process of its decay. He had watched it happen, again and again, to every court he had ever served.

Key Figures

Tamerlane (Timur)
Conqueror

Tamerlane (Timur)

The Turco-Mongol ruler of the Timurid Empire — conqueror of Persia, India, and the Levant, destroyer of Delhi and Baghdad. Their meeting in 1401 outside besieged Damascus is one of the most extraordinary encounters of the medieval world. Ibn Khaldun described Timur as “highly intelligent and very perspicacious, addicted to debate and argumentation” and “lame in his right thigh from an old arrow wound.” He was appalled by Timur’s brutality and fascinated by his power — a living case study in the asabiyyah of a conquering people at its absolute peak.

Ibn al-Khatib
Friend and Rival

Ibn al-Khatib

Lisan al-Din ibn al-Khatib (1313–1374) — poet, historian, physician, and vizier of Granada — was one of the most celebrated literary figures of fourteenth-century Andalusia. He and Ibn Khaldun met in Fez and became close friends; they shared an intellectual passion and a talent for court politics. Their friendship soured when Ibn Khaldun’s intimacy with Sultan Muhammad V threatened Ibn al-Khatib’s position. Ibn Khaldun was expelled from Granada. Ibn al-Khatib was later imprisoned, tried for heresy, and strangled in a Fez prison in 1374. Ibn Khaldun wrote about him at length in his autobiography — with grief, with admiration, and without resolution.

Ibn Khaldun
Folio 7a of the Muqaddimah in Ibn Khaldun’s own handwriting, MS Atıf Efendi 1936 — one of the most direct surviving links to the author himself.

The Legacy of Ibn Khaldun

Ibn Khaldun accomplished something no thinker before him had managed: he stepped outside history and looked at it as a system. Not as God’s plan. Not as the moral progress of mankind. Not as the biography of kings. But as a repeating pattern, governed by identifiable forces — the rise of group cohesion, the erosion of that cohesion by prosperity, the collapse of dynasties, and the rise of new groups with the hunger and solidarity their predecessors had lost.

He was the founder of sociology, six centuries before the word existed. He articulated the Laffer Curve five hundred years before Arthur Laffer. His theory of cyclical history anticipated Ibn Khaldun’s concept of asabiyyah — group feeling as the engine of power — and his empirical insistence that historical claims must be tested against the known laws of human nature anticipated the scientific method in historical inquiry.

He was also a man who had served and been betrayed by five different rulers, lost his wife and daughters to a shipwreck, buried his parents to plague, and sat across a fire from the most dangerous man alive and asked him careful, polite questions. His theories were not academic. They were autobiography. Read his story in the first-person ePub.

Get the Full First-Person Biography

Read Ibn Khaldun's story told in their own voice — 8 chapters of cinematic, first-person narrative.

Continue the Conversation

You've heard my story. Now ask me anything.

Talk to Ibn Khaldun