Ibrahim I was the 33rd Shirvanshah. Because of his cunning politics he managed to remain independent and avoid getting deposed by the Turko-Mongol ruler Timur.
In 1386, Ibrahim recognized the powerful Turko-Mongol ruler Timur as his suzerain. When Timur arrived to Caucasus in 1394, Ibrahim gave him gifts and riches as presents in order to maintain good relations with him. However, one of these gifts were eight slaves, which Timur did not see as enough—when he asked Ibrahim why he had only given eight slaves, Ibrahim replied: "I am myself the ninth". This made Timur glad, who due to the kindness of Ibrahim gave him much land and promised to protect him. From 1399 to 1402, Ibrahim fought alongside Timur in his campaigns in Syria and Anatolia. Timur later died in 1405, fighting and rebellion broke, causing great disruption. Ibrahim was one those; he used the death of Timur as an opportunity to declare independence and seize Ganja and Karabakh. In 1412, the Kara Koyunlu ruler Qara-Yusuf, who ruled Azerbaijan, invaded the territory of Ibrahim, who requested aid from the Georgian ruler Constantine I of Georgia, who came to his assistance; a battle shortly ensured near Chalagan, which resulted in the defeat of the combined Shirvanian-Georgian forces. Ibrahim, along with his sons and Constanine were then imprisoned. Some time later, due to the bad behavior of Constantine, Qara-Yusuf had him, his son and other Georgians executed. Furthermore, Qara-Yusuf had also caused great destruction in Shirvan. Ibrahim later paid a huge amount of money in return of being freed. Ibrahim went back to his kingdom and struggled to restore order in it. He died in 1418 and was succeeded by his son Khalilullah I.
Legacy
Ibrahim I revived Shirvan's fortunes, and through his cunning politics managed to avoid Timurid conquest, letting his kingdom continue without paying tribute. Furthermore, Ibrahim also greatly increased the limits of his state as far as Derbent in north and the Mugan plain to the south.
Family
Ibrahim was married to Bika khanum, a noblewoman, with whom he had 11 sons and a daughter:
Khalilullah I - d. 1465, succeeded him as Shirvanshah.
Prince Kayumars - d. circa 1412 imprisoned by Qara-Yusuf, pardoned and returned to Ibrahim, but becoming suspicious of possible conspiracy against himself, Kayumars was executed, which triggered Battle of Chalagan
Prince Gazanfar - b. 1398, d. 1443 - imprisoned by Qara-Yusuf in Battle of Chalagan, was acting as the governor of Baku during the absence of Khalilullah I.
Prince Kayqubad - rebelled against Khalilullah I in 1425, executed by Shahrukh Mirza.
Prince Ishaq - rebelled against Khalilullah I in 1425, executed by Shahrukh Mirza.
Prince Asadullah - imprisoned by Qara-Yusuf in Battle of Chalagan.
Prince Manuchihr - imprisoned by Qara-Yusuf in Battle of Chalagan, later was in service of Shahrukh Mirza.
Prince Abdurrahman - imprisoned by Qara-Yusuf in Battle of Chalagan.
Prince Nasratullah - imprisoned by Qara-Yusuf in Battle of Chalagan.
Prince Hashim - imprisoned by Qara-Yusuf in Battle of Chalagan, rebelled against Khalilullah I in 1425, executed by Shahrukh Mirza.
Prince Farrukhzad - imprisoned by Qara-Yusuf in Battle of Chalagan.
Princess Lal Bi Tukmak - married to Timur's son Umar Shaikh Mirza I in c. 1387