Most of what is known about Hidayat's lifecomes from his poetry. It has been established that his real name was Afsahaddin Hidayatullah and that he lived in the second half of the 15th century. He served as an amir under the Aq Qoyunlu ruler Uzun Hasan and was a Shia Muslim. Hidayat resided in Shiraz with Aq QoyunluSultan-Khalil until he ascended to the throne in 1478 and then accompanied him to Tabriz when he came into power. However, when Ya'qub Beg took over later that year, Hidayat was sent to Iraq against his wishes. The precisedate of his death is uncertain, but it is known that he died before December 1497.