The country of Georgia became part of the Russian Empire in the 19th century. Throughout the early modern period, the Muslim Ottoman and Persian empires had fought over various fragmented Georgian kingdoms and principalities; by the 18th century, Russia emerged as the new imperial power in the region. Since Russia was an Orthodox Christian state like Georgia, the Georgians increasingly sought Russian help. In 1783, Heraclius II of the eastern Georgian kingdom of Kartli-Kakheti forged an alliance with the Russian Empire, whereby the kingdom became a Russian protectorate and abjured any dependence on its suzerain Persia. The Russo-Georgian alliance, however, backfired as Russia was unwilling to fulfill the terms of the treaty, proceeding to annex the troubled kingdom in 1801, and reducing it to the status of a Russian region (Georgia Governorate). In 1810, the western Georgian kingdom of Imereti was annexed as well. Russian rule over Georgia was eventually acknowledged in various peace treaties with Persia and the Ottomans, and the remaining Georgian territories were absorbed by the Russian Empire in a piecemeal fashion in the course of the 19th century. Until 1918, Georgia would be part of the Russian Empire. Russian rule offered the Georgians security from external threats, but it was also often heavy-handed and insensitive to locals. By the late 19th century, discontent with the Russian authorities led to a growing national movement. The Russian Imperial period, however, brought unprecedented social and economic change to Georgia, with new social classes emerging: the emancipation of the serfs freed many peasants but did little to alleviate their poverty; the growth of capitalism created an urban working class in Georgia. Both peasants and workers found expression for their discontent through revolts and strikes, culminating in the Revolution of 1905. Their cause was championed by the socialist Mensheviks, who became the dominant political force in Georgia in the final years of Russian rule. Georgia finally won its independence in 1918, less as a result of the nationalists' and socialists' efforts, than from the collapse of the Russian Empire in World War I. Background: Russo-Georgian relations before 1801 By the 15th century, the Christian Kingdom of Georgia had become fractured into a series of smaller states which were fought over by the two great Muslim empires in the region, Ottoman Turkey and Safavid Persia. The Peace of Amasya of 1555 formally divided the lands of the south Caucasus into separate Ottoman