In 1783, Heraclius II signed the Treaty of Georgievsk with Catherine, according to which Kartli-Kakheti agreed to forswear allegiance to any state except Russia, in return for Russian protection. But when another Russo-Turkish War broke out in 1787, the Russians withdrew their troops from the region for use elsewhere, leaving Heraclius's kingdom unprotected. In 1795, the new Persian shah, Agha Mohammed Khan issued an ultimatum to Heraclius, ordering him to break off relations with Russia or face invasion. Heraclius ignored it, counting on Russian help, which did not arrive. Agha Mohammad Khan carried out his threat and captured and burned the capital, Tbilisi, to the ground, as he sought to re-establish Persia's traditional suzerainty over the region.