In the summer of 1500, Ismail rallied about 7,000 Qizilbash troops at Erzincan, including members of the Ustajlu, Rumlu, Takkalu, Dhu'l-Qadar, Afshar, Qajar, and Varsaq. Qizilbash forces passed over the Kura River in December 1500, and marched towards the Shirvanshah's state. They defeated the forces of the Shirvanshah Farrukh Yassar near Cabanı (present-day Shamakhi Rayon, Azerbaijan Republic) or at Gulistan (present-day Gülüstan, Goranboy, Nagorno-Karabakh), and subsequently went on to conquer Baku. Thus, Shirvan and its dependencies (up to southern Dagestan in the north) were now Ismail's. The Shirvanshah line nevertheless continued to rule Shirvan under Safavid suzerainty for some more years, until 1538, when, during the reign of Ismail's son, Tahmasp I (r. 1524-1576), from then on it came to be ruled by a Safavid governor. After the conquest, Ismail had Alexander I of Kakheti send his son Demetre to Shirvan to negotiate a peace agreement.