The House of Gurieli was a Georgian princely family and a ruling dynasty of the southwestern Georgian province of Guria, which was autonomous and later, for a few centuries, independent. A few ducal rulers of the dynasty also rose in the 17th-18th centuries to be kings of the whole western Caucasus in place of the hereditary Bagrationi kings of Imereti. Bearing a hereditary title for governors of Guria since the mid-13th century, Gurieli was adopted as a dynastic name by the Vardanisdze family, hereditary rulers of Svaneti. The other notable branch of the Vardanisdze was the Dadiani of Samegrelo. Both of these branches occasionally used double names: Gurieli-Dadiani or Dadiani-Gurieli. The medieval Gurieli were vassals of the Georgian crown but, at the same time, seem to have paid some kind of homage to the rulers of the neighboring Empire of Trebizond, whose last emperor, David Komnenos, is documented as having been 'gambros' of Mamia Vardanisdze-Gurieli, which is interpreted to mean that Mamia married his daughter or sister or close kinswoman. If the couple had issue, possibly the subsequent ruler Kakhaber, the latter-day Gurieli would descend from several Byzantine and Trapezuntine emperors. In the 1460s, when the power of the Bagrationi Dynasty of Georgia was on the decline, the Gurieli pursued a policy of separation and became virtually independent rulers of the Principality of Guria in the mid-16th century, but were forced to pay tribute to the Ottoman Empire, nominally recognizing also the authority of the princes of Mingrelia and kings of Imereti. Throughout the following two centuries, the politics of the Gurieli dynasty were dominated by conflicts with the neighboring Georgian rulers, Ottoman encroachment, and repeated occasions of civil strife and palace coups. In the 17th and 18th centuries, as many as four Gurieli rulers managed to be chosen kings of the whole Western Caucasus in place of hereditary Bagrationi kings of Imereti. Gurieli kings however are usually characterized as usurpers, or as counter-monarchs of a rival dynasty. On several occasions powerful neighbors also managed to divert the rule of Guria to members of rival branches of the Gurieli dynasty. Having accepted Imperial Russian sovereignty in 1810, the dynasty continued to enjoy some autonomy in their home affairs until 1829, when the Russian authorities deposed Prince David, the last Gurieli, and annexed the Principality of Guria. With the death of David in 1839, his cousin David Gurieli, and his descendants were confirmed in the Russian nobility with the princely title of by the Emperor's ukase of 1850.