Having grown wary of his political power, Ali Mirza was captured by the Ak Koyunlu and spent several years in captivity in Fars before being released in 1493 by prince Rostam.
[2] Ali Mirza Safavi was the eldest son of Shaykh Haydar by his wife Alam-Shah Begum (Halima, Mart[h]a), daughter of Uzun Hasan by Despina Khatun (Theodora Megale Komnene).
[2] At some point, Sufi's of the Safavid order mobilized themselves at Ardabil around Ali Mirza Safavi, and instigated him "to avenge his father's death", in which the Ak Koyunlu had been involved.
[2] Dismayed by the news, the ruler of the Ak Koyunlu, Yaqub bin Uzun Hasan, ordered for the arrest of Ali Mirza Safavi and a number of his relatives, including his mother and two brothers.
[2] Ali Mirza Safavi spent more than four years incarcerated; he was eventually released in 1493 by a prince of the Ak Koyunlu named Rostam, who happened to be one of the claimants to the throne following Yaqub bin Uzun Hasan's death in 1490.