Мelik (մելիք, from ملك) was a hereditary Armenian noble title used in Eastern Armenia from the Late Middle Ages until the nineteenth century. The meliks represented some of the last remnants of the old Armenian nobility. The most prominent and powerful meliks were those of Karabagh (Artsakh) and Syunik, which ruled autonomous or semi-autonomous principalities known as melikdoms (մելիքություն) under Iranian suzerainty. Meliks also existed in Yerevan, Nakhichevan, Sevan, Lori, Northwestern Persia, and other areas, although outside of Karabagh and Syunik most were merely hereditary leaders of local Armenian communities, not rulers of principalities. The meliks of Karabagh each had their troops and military fortifications known as sghnakhs. They ruled on legal disputes within their territory and collected tax. The meliks of Karabagh saw themselves as the last bastion of Armenian independence in the region. After the conquest of Eastern Armenia by the Russian Empire, the meliks were generally not recognized as princes, but only as untitled nobles. Many of them, especially meliks from Karabakh, became Russian generals. The conquest of Armenia by successive foreign dynasties during the medieval period dealt severe blows to the traditional Armenian nobility. By the end of Mongol rule in Armenia, the old social structure of Armenia had been virtually destroyed and the great princely houses had mostly disappeared. Remnants of these princely houses survived in a few places, most notably in the mountainous and strategically important regions of Karabagh (part of historical Artsakh province) and Syunik, where they retained their autonomy. Old Armenian titles fell out of use and were replaced with the flexible term melik, which was used to refer to any of the remnants of the Armenian nobility, whether successors of the great princely houses or of the lower gentry (azats). Later, the term was used to refer to even lower layers of elites, such as municipal and village chiefs in charge of duties such as tax collection.