In 1486, the Georgian cities of
Dmanisi and Kveshi were attacked by the troops of sultan
Yaqub. But in the fortresses they were met by the soldiers of
Sulkhan Baratashvili, who fought courageously and defeated the enemy. After the departure of the main forces of Yaqub shah, King
Constantine took advantage of the favorable situation and exterminated the Turkomans in the surrounding area. In 1488, sultan Yaqub sent his commander
Sufi Khalil Beg Mawsilu to Georgia to build the fortresses of Kaoziani and Agdzhakala. Having learned about this, Constantine sent his troops led by Sulkhan Baratashvili to Khalil beg. Sulkhan defeated the troops of Khalil Beg. Then the Shah sent a huge army to Georgia, which immediately besieged
Tbilisi. King Constantine set out from
Imereti and sent Kaikhosro Tsitsishvili and Javakh Javakhashvili to help Baratashvili. Having united Tsitsishvili, Javakhishvili and Baratashvili attacked the Shah’s troops at Chandari. A battle took place near Chandari which ended in complete victory for the
Georgians. Having learned about the defeat of the army at Chandari, the Shah's troops lifted the siege of Tbilisi. Tsitsishvili, Javakhishvili and Baratashvili rushed after them, caught up with them and beat them badly. After Constantine left Imereti,
Alexander II with the
Svans captured
Kutaisi (1489). He reconciled with
Liparit Dadiani and
Gurieli, after which all of Imereti was in his hands. In 1490, the king learned that the Shah’s troops were coming to
Kartli. Constantine asked for help to
Atabeg of
Samtskhe Qvarqvare II and the King of
Kakheti Alexander I, but they refused. Soon the Shah's troops approached the Orbeti fortress, but were unable to take it and moved towards the Kojori fortress. The defenders of the Kojori fortress abandoned it at night. The Shah's troops, having destroyed the fortress, moved to Tbilisi. The Shah's troops, having besieged Tbilisi, sent a detachment of 1,500 horsemen and other soldiers to devastate the surrounding area of Orbeti. Following them was an army of Kartlians led by Sulkhan Baratashvili. They quickly caught up with the detachment and defeated it. Merab Baratashvili managed to capture a relative of the Shah. Having learned about the destruction of the detachment, the Shah's troops once again lifted the siege of Tbilisi and withdrew from Kartli. After the departure of the Shah's troops, king Constantine exterminated the nomads in the vicinity, and also destroyed the fortresses of Agdzhakala and Kaoziani. ==Georgian–Safavid Alliance==