In the 16th century, Karabakh came under Iranian rule for the first time in almost a millennium with the rise of the Safavid Empire, within which the territory of modern-day Artsakh became part of the Province of Karabakh. The Armenian princes continued to rule autonomously over the highlands of Karabakh during this time.