Following wars with the Byzantine Empire, and with the arrival of Seljuk Turks in the latter half of the 11th century, the Kingdom of Armenia collapsed, and Artsakh became the autonomous Principality of Khachen, ruled by the House of Hasan-Jalalyan, within the Kingdom of Georgia for a short time until the Mongols acquired the region. Although the Armenians of Artsakh did not rule the lands as fully sovereign entities, the mountainous geography of the location allowed them to maintain a semi-independent or autonomous status within other realms, such as the Timurid, Kara Koyunlu, and Ak Koyunlu realms.