The House of Khachen continued to rule Artsakh intermittently as vassals until the early 19th century, through the subsequent full domination by the Kara Koyunlu, Ak Koyunlu, Iranian Safavids, Zands, Afsharids, and Qajars, until it was ceded to Imperial Russia following the outcome of the Russo-Persian War (1804-1813) and the following Treaty of Gulistan.