Ziauddin Barani (‎; 1285–1358 CE) was an Indian Muslim political thinker of the Delhi Sultanate located in present-day Northern India during Muhammad bin Tughlaq and Firuz Shah's reign. He was best known for composing the Tarikh-i-Firoz Shahi (also called Tarikh-i-Firuz Shahi), a work on medieval India, which covers the period from the reign of Ghiyath al-Din Tughluq to the first six years of reign of Firoz Shah Tughluq and the Fatwa-i-Jahandari which promoted a hierarchy among Muslim communities in the Indian subcontinent, although according to M. Athar Ali it was not based on race or even like the caste system, but taking as a model Sassanid Iran, which promoted an idea of aristocracy through birth and which was claimed by Persians to be "fully in accordance with the main thrust of Islamic thought as it had developed by that time", including in the works of his near-contemporary Ibn Khaldun. Life Barani was born in 1285, to a Muslim family native to Baran. His father, uncle, and grandfather all worked in high government posts under the Sultan of Delhi. His maternal grandfather Husam-ud-Din, was an important officer of Ghiyas ud din Balban and his father Muwayyid-ul-Mulk held the post of naib of Arkali Khan, the son of Jalaluddin Firuz Khalji. His uncle Qazi Ala-ul-Mulk was the Kotwal (police chief) of Delhi during the reign of Ala-ud-Din Khalji. Barani never held a post, but was a nadim (companion) of Muhammad bin Tughlaq for seventeen years. During this period he was very close to Amir Khusro. After Tughlaq was deposed, he fell out of favor. In "Exile" he wrote two pieces dealing with government, religion, and history, which he hoped would endear him to the new sultan, Firuz Shah Tughluq. He was not rewarded for his works and died poor in 1357. He was a native of Baran (now Bulandshahr) in northern India, hence his nisba Barani. His gravestone lies in the courtyard of Nizamuddin Auliya's dargah in Delhi, at the entrance of the dalan of Mirdha Ikram, and near the tomb of Amir Khusrau. Works Fatwa-i-Jahandari The Fatwa-i-Jahandari is a work containing the political ideals to be pursued by a Muslim ruler in order to earn religious merit and the gratitude of his subjects. It is written as nasihat(advices) for the Muslim kings. His fatwa would condone segregation of the Muslim ashraf upper castes and ajlaf low castes, in addition to the