From being granted the kingship of Kakheti by his overlord Nader Shah in 1744 as a reward for his loyalty, to becoming the penultimate king of the united kingdoms of Kakheti and Kartli in eastern Georgia, his reign is regarded as the swan song of the Georgian monarchy. Aided by his personal abilities and the unrest in the Persian Empire, Heraclius established himself as a de facto autonomous ruler, unified eastern Georgia politically for the first time in three centuries, and attempted to modernize the government, economics, and military. Overwhelmed by the internal and external menaces to Georgia's precarious independence and its temporary hegemony in eastern Transcaucasia, he placed his kingdom under the formal Russian protection in 1783, but the move did not prevent Georgia from being devastated by the Persian invasion in 1795. Heraclius died in 1798, leaving the throne to his moribund heir, George XII.