page_title: Ibn Khaldun
section_title: Political career
hierarchical_section_title: Ibn Khaldun / Political career
caption_attribution_description: Français&#160;: La mosquée dans laquelle Ibn Khaldoun a fait ses études à partir du 732 Hégir / 27 Mai 1332
context_page_description: Ibn Khaldun was an Arab scholar of Islam, social scientist and historian who has been described as the father of the modern disciplines of historiography, sociology, economics, and demography. Niccolò Machiavelli of the Renaissance and the 19th-century European scholars widely acknowledged the significance of his works and considered Ibn Khaldun to be one of the greatest philosophers of the Middle Ages.
  His best-known book, the Muqaddimah or Prolegomena, which he wrote in six months as he states in his autobiography, influenced 17th-century Ottoman historians like Kâtip Çelebi, Ahmed Cevdet Pasha and Mustafa Naima, who used its theories to analyze the growth and decline of the Ottoman Empire. Ibn Khaldun interacted with Tamerlane, the founder of the Timurid Empire.
context_section_description: At the age of 20, he began his political career in the chancellery of the Tunisian ruler Ibn Tafrakin with the position of Kātib al-'Alāmah (seal-bearer), which consisted of writing in fine calligraphy the typical introductory notes of official documents. In 1352, Abū Ziad, the sultan of Constantine, marched on Tunis and defeated it. Ibn Khaldūn, in any case unhappy with his respected but politically meaningless position, followed his teacher Abili to Fez. There, the Marinid sultan, Abū Inan Fares I, appointed him as a writer of royal proclamations, but Ibn Khaldūn still schemed against his employer, which, in 1357, got the 25-year-old a 22-month prison sentence. Upon the death of Abū Inan in 1358, Vizier al-Hasān ibn-Umar granted him freedom and reinstated him to his rank and offices. Ibn Khaldūn then schemed against Abū Inan's successor, Abū Salem Ibrahim III, with Abū Salem's exiled uncle, Abū Salem. When Abū Salem came to power, he gave Ibn Khaldūn a ministerial position, the first position to correspond with Ibn Khaldūn's ambitions.
  The treatment that Ibn Khaldun received after the fall of Abū Salem through Ibn-Amar ʻAbdullah, a friend of Ibn Khaldūn's, was not to his liking, as he received no significant official position. At the same time, Amar successfully prevented Ibn Khaldūn, whose political skills he knew well, from allying with the Abd al-Wadids in Tlemcen. Ibn Khaldūn, therefore, decided to move to Granada. He could be sure of a positive welcome there since at Fez, he had helped the Sultan of Granada, the Nasrid Muhammad V, regain power from his temporary exile. In 1364, Muhammad entrusted him with a diplomatic mission to the king of Castile, Pedro the Cruel, to endorse a peace treaty. Ibn Khaldūn successfully carried out this mission and politely declined Pedro's offer to remain at his court and have his family's Spanish possessions returned to him.
  In Granada, Ibn Khaldūn quickly came into competition with Muhammad's vizier, Ibn al-Khatib, who viewed the close relationship between Muhammad and Ibn Khaldūn with increasing mistrust. Ibn Khaldūn tried to shape the young Muhammad into his ideal of a wise ruler, an enterprise that Ibn al-Khatib thought foolish and a danger to peace in the country. History proved al-Khatib right, and at his instigation, Ibn Khaldūn was eventually sent back to North Africa. Al-Khatib himself was later accused by Muhammad of having unorthodox philosophical views and murdered despite an attempt by Ibn Khaldūn to intercede on behalf of his old rival.
  In his autobiography, Ibn Khaldūn tells little about his conflict with Ibn al-Khatib and the reasons for his departure. Orientalist Muhsin Mahdi interprets that as showing that Ibn Khaldūn later realised that he had completely misjudged Muhammad V.
  Back in Africa, the Hafsid sultan of Bougie, Abū ʻAbdallāh, who had been his companion in prison, received him with great enthusiasm and made Ibn Khaldūn his prime minister. Ibn Khaldūn carried out a daring mission to collect taxes among the local Berber tribes. After the death of Abū ʻAbdallāh in 1366, Ibn Khaldūn changed sides once again and allied himself with the Sultan of Tlemcen, Abū l-Abbas. A few years later, he was taken prisoner by Abu Faris Abdul Aziz, who had defeated the sultan of Tlemcen and seized the throne. He then entered a monastic establishment and occupied himself with scholastic duties until 1370. In that year, he was sent for to Tlemcen by the new sultan. After the death of ʻAbdu l-Azīz, he resided at Fez, enjoying the patronage and confidence of the regent.
  Ibn Khaldūn's political skills and, above all, his good relationship with the wild Berber tribes were in high demand among the North African rulers, but he had begun to tire of politics and constantly switching allegiances. In 1375, he was sent by Abū Hammu, the ʻAbdu l Wadid Sultan of Tlemcen, on a mission to the Dawadida Arabs tribes of Biskra. After his return to the West, Ibn Khaldūn sought refuge with one of the Berber tribes in the west of Algeria, in the town of Qalat Ibn Salama. He lived there for over thre
caption: The mosque in which Ibn Khaldun studied
exif: {"Image ImageWidth": "2048", "Image ImageLength": "1536", "Image Make": "SAMSUNG", "Image Model": "GT-S5253", "Image Orientation": "Rotated 90 CW", "Image XResolution": "72", "Image YResolution": "72", "Image ResolutionUnit": "Pixels/Inch", "Image DateTime": "2012:09:27 16:23:09", "Image YCbCrPositioning": "Centered", "Image ExifOffset": "202", "Thumbnail Compression": "JPEG (old-style)", "Thumbnail JPEGInterchangeFormat": "504", "Thumbnail JPEGInterchangeFormatLength": "10949", "EXIF ExposureTime": "1/207", "EXIF FNumber": "13/5", "EXIF ExposureProgram": "Aperture Priority", "EXIF ISOSpeedRatings": "50", "EXIF ExifVersion": "0220", "EXIF ComponentsConfiguration": "YCbCr", "EXIF MeteringMode": "CenterWeightedAverage", "EXIF Flash": "Flash did not fire", "EXIF FocalLength": "139/50", "EXIF ColorSpace": "sRGB", "EXIF ExifImageWidth": "2048", "EXIF ExifImageLength": "1536", "Interoperability InteroperabilityIndex": "R 9 8", "Interoperability InteroperabilityVersion": "[48, 49, 48, 48]", "EXIF InteroperabilityOffset": "424", "EXIF ExposureMode": "Auto Exposure", "EXIF WhiteBalance": "Auto", "EXIF SceneCaptureType": "Standard"}