Later, the Orbelian Dynasty, ane o whose memmers wrote an important history o the kintra, govrened Syunik in times o Timur (Tamerlan) as vassals. Atween mid-17t c an early 19t c, the region wis pairt o theKarabakh khanate o the Safavid Empire. It wis durin this period in the region's history that David Bek heidit an airmit struggled against the Safavids an the Ottoman Empire, baith o which wur fechtin for control o the aurie.