Khalilullah I

Khalilullah I, also known as Sultan-Khalil (سلطان-خلیل), was the Shirvanshah (king of Shirvan) from 1418 to 1465. He was the son and successor of Ibrahim I ((r. 1382 – 1418)). He was succeeded by his son Farrukh Yasar.

Reign
After the death of the Qara Qoyunlu ruler Qara Yusuf in 1420, many of his conquered subjects, who had formerly been vassals of the Timurid Empire, swore their fealty to Timur's son Shah Rukh ((r. 1405 – 1447)). This included Khalilullah, who also married a daughter (Qara Yusuf's widow) of the Timurid prince Abu Bakr ibn Miran Shah. In 1425, Sultan-Khalil faced a revolt led by his brothers Kay-Qubad, Ishaq and Hashim. With the help of Shah Rukh, however, he quelled the revolt. In 1432, Yar Ali, the son of the Qara Qoyunlu ruler Iskandar, fled to Shirvan, where he was given sanctuary by Khalilullah. This seemingly provoked the later Shirvan invasion of Iskandar in 1433/4, who reached as far as the city of Darband, later returning to Azerbaijan with loot and captives. Khalilullah appealed to the Aq Qoyunlu ruler Uthman Beg ((r. 1378 – 1435)), who in response invaded Qara Qoyunlu-ruled Armenia, capturing the city of Erzurum in the spring of 1434.

Between 1456 and 1459, the Safavid leader Shaykh Junayd made an alliance with the Aq Qoyunlu ruler Uzun Hasan ((r. 1457 – 1478)) by marrying his sister Khadija Begum. With the support of Uzun Hasan, Junayd made several incursions into northern Anatolia (Trebizond) and Circassia, but was killed in March 1460 by the forces of the Khalilullah during a battle near Tabarsaran. Khalilullah died in 1465, and was buried in the city of Baku. He was succeeded by his son Farrukh Yasar.

In 1500, following the Safavid conquest of Shirvan, the commander Khadem Beg Talish had the body of Khalilullah dug up, burned and publicly scattered.