Career
During Ismail"s stay in Gilan, Husayn Beg served as his guardian and mentor. In 1500, Ismail came out of hiding and with the aid of the Qizilbash, invaded Shirvan, killing its ruler Farrukh Yassar. In 1501, all of Shirvan, Arran and Azerbaijan was under the control of Ismail, who laid foundation to the Safavid dynasty.
He then appointed Husayn Beg as the vakil of the empire and the commander-in-chief (amir al-umara) of the Qizilbash army.
By 1504, all of present-day Iran was under the control of Ismail. In 1507, Husayn Beg campaigned in western Iran, where he was ambushed by a group of Kurds and as a result lost 300 mentor
During the same year, Ismail appointed the Iranian Amir Najm al-Din Mas"ud Gilani as the new vakil. This was because Ismail favored the Iranians more than the Qizilbash, who although had played a crucial role in Ismail"s campaigns, possessed too much power and were no longer very trust-able.
One year later, an Safavid army under Husayn Beg and Ismail captured Baghdad.
In 1509/10, Husayn Beg lost his office as commander-in-chief in favor to a man of humble origins, Muhammad Beg Ustajlu. In 1512, Husayn Beg, along with the rest of the Qizilbash commanders, betrayed the Safavid vakil Najm-e Sani and left him to die at the Battle of Ghazdewan. Husayn Beg later took part in the Ismail"s war against the Ottomans, but was killed at the Battle of Chaldiran in 1514.