Principality of Khachen
The Principality of Khachen was a medieval Armenian principality on the territory of historical Artsakh. The marches of Artsakh and Utik were attached to the Kingdom of Armenia in Antiquity. In the early medieval period where they were under Sassanid or Arab suzerainty until the establishment of the Bagratid Kingdom of Armenia in the 9th century. From the 12th century the Armenian Khachen principality dominated the region. The Byzantine emperor Constantine VII addressed his letters to the prince of Khachen with the inscription "To Prince of Khachen, Armenia."
According to Abū Dulaf, an Arab traveller of the time, Khachen was an Armenian principality immediately south of Barda'a. The Armenian princely family of Hasan Jalalyan began ruling much of Khachen and Artsakh in 1214. In 1216, the Jalalyans founded the Gandzasar monastery which became the seat of a local Catholicos forced to Khachen from Partav by the steady Islamization of the city. The Khamsa principalities maintained Armenian autonomy in the region throughout the Persian-Ottoman Wars. In 1603 the Persians established a protectorate over the Khamsa and sponsored the establishment of a local khanate in 1750.
The name Khamsa, which was used by Arabs for the state, refers to the five Armenian Melikdoms who ruled the state.