Tahmasp II
After the fall of the Safavids in 1722, Davit Bek established himself as leader of the defenses of the local Armenians of Syunik and Kapan during the Ottoman Turkish invasion and the attacks of the local Muslim tribes. Davit was successful in preventing the various Muslim tribes from making proper territorial gains. In 1727, in order to put a halt to the Ottoman approach in the area, king Tahmasp II appointed Davit as the governor of the area, and gave him the right to administer the area as a vassal Armenian principality under Iranian control.