Safavid Empire
In the summer of 1500, Ismail (member of Safavid family), rallied about 7,000 Qizilbash troops at Erzincan, including members of the Ustajlu, Rumlu, Takkalu, Dhu'l-Qadar, Afshar, Qajar, and Varsaq tribes. Thus, the Safavids launched a new Turkic invasion from the east. 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.