# Khvandamir

Ghiyath al-Din Muhammad, commonly known as Khvandamir (Persian: غیاث‌الدین خواندمیر, also spelled Khwandamir; 1475/6 – 1535/6) was a Persian historian who was active in the Timurid, Safavid and Mughal empires. He is principally known for his Persian universal history, the Habib al-siyar (The beloved of careers), which was regarded by both the Safavids and Mughals as their first official court account.
Another notable work by Khvandamir is the Qanun-i Humayuni (The regulations of Humayun), a biography of the Mughal emperor Humayun (r. 1530–1540, 1555–1556), which contains important information regarding the early Mughal symbolism of rulership.
Khvandamir is buried near the shrine of Nizamuddin Auliya (died 1325) in Delhi, India.

## Background

Khvandamir was the son of Humam al-Din Muhammad, who was the vizier of Sultan Mahmud Mirza (r. 1494–1495), the ruler of the northern Timurid branch in Transoxiana. However, Khvandamir's family lived in Herat, the capital of the southern Timurids. Khvandamir was tutored by his maternal grandfather Mirkhvand (died 1498), which played a major role in his career as a historian. Furthermore, Khvandamir also inherited the patronage networks of his grandfather. Mirkhvand was one of the most prominent historians during the reign of Sultan Husayn Bayqara (r. 1469–1506), well-known for his universal history, the Rawzat as-safa' (The garden of purity), which he wrote under the patronage of the high-ranking functionary Ali-Shir Nava'i (died 1501).
Khvandamir likewise wrote under the patronage of Nava'i, dedicating his first works to him, the first one being the Ma'athir al-muluk (Memorials of the kings), a compilation of sayings ascribed to pre-Islamic and Islamic sages and rulers; and the second being the Khulasat al-akhbar fi bayan ahval al-akhyar (Summary reports on the affairs of those gone by), a concise version of the Rawzat as-safa'. After Nava'i's death in 1501, Khvandamir wrote a praiseful biography of the latter, the Makarim al-akhlaq (Laudable virtues). Khvandamir also completed volume seven and epilogue of the Rawzat as-safa', which had been left incomplete after Mirkhvand's death in 1498.

## Career
### Under the Timurids

In the subsequent years, Khvandamir worked as a munshi (secretary) and diplomat under Sultan Husayn Bayqara's oldest son and heir Badi' al-Zaman Mirza (died 1514), under whom he composed the Dastur al-vuzara' (Exemplary viziers), a biography list of pre-Islamic and Islamic viziers. Following the co-succession of Badi al-Zaman and his brother Muzaffar Husayn to the throne in 1506, Khvandamir was installed as one of the two sadrs (head of religious fundings) of the entire kingdom.
Khvandamir retained his position following conquest of Herat by the Uzbek leader Muhammad Shaybani (died 1510), which led to the fall of the Timurids. Regardless, Khvandamir seems to have been dissatisfied with the new government, as indicated in his later universal history Habib al-siyar. He soon found himself unemployed following the conquest of Herat by the Safavid shah (king) Ismail I (r. 1501–1524) in 1510. This was most likely due to religio-political reasons, as Khvandamir was a Sunni Muslim, whereas the Safavids were zealous Shia Muslims. Khvandamir soon left for the neighbouring region of Gharjistan, where he briefly served Badi al-Zaman's son Muhammad Zaman Mirza (died 1540), who unsuccessfully attempted to establish his rule in the area.

### Under the Safavids

In 1521, Khvandamir started writing his universal history Habib al-siyar for the Safavid sadr Amir Ghiyas al-Din Mohammad ibn Amir Yusuf Hosseini, seemingly in order to revitalize his career in Herat. The latter, however, was executed the same year by the governor of the city, Amir Khan Mawsillu (died 1522). Durmish Khan Shamlu (died 1526) was soon made the new governor of Herat, whose vizier Karim al-Din Khvaja Habiballah Savaji became the new patron of Khvandamir. While it is generally agreed that the name of Khvandamir's Habib al-siyar referred to his new patron Habiballah Savaji, it may have in fact referred to Shah Ismail, as the latter is often called habib-i ilahi (friend of God) in the work. In 1524, Khvandamir finished his first version (called A) of the book, and the following year a second version (B), which was an extension of the previous version.

### Under the Mughals

The murder of Habiballah Savaji in 1526 seemingly made Khvandamir reassess his situation in Herat. He accepted the invitation of the Timurid prince and Mughal emperor Babur (r. 1526–1530), who had in the same year established his authority over North India, including the cities of Delhi and Agra. Khvandamir reached India 1528, where wrote a third version (C) of the Habib al-siyar at Babur's court. Khvandamir later wrote the Qanun-i Humayuni ("The regulations of Humayun"), a biography of Babur's son and successor Humayun (r. 1530–1540, 1555–1556), which has important information regarding the early Mughal symbolism of rulership.

## Death, burial and issue

Khvandamir died in 1535 or 1536, and was buried near the shrine of Nizamuddin Auliya (died 1325) in Delhi. He was survived by two sons; Amir Mahmud (died after 1550), who stayed in Iran and wrote a history book about the first fifty years of Ṣafavid rule, the Tarikh-i Shah Isma'il va Shah Tahmasb-i Safavi; and Abdallah Khan (died 1589), who served as a government official under the Mughal emperor Akbar (r. 1556–1605).