In 1488, the father of Ismail was killed in a battle at Tabasaran against the forces of the Shirvanshah Farrukh Yassar and his overlord, the Aq Qoyunlu, a Turkic tribal federation which controlled most of Iran.