 The main urban center of the Province of Karabakh was the city of Ganja.The first Safavid governor of Karabakh ("hakem") was Piri Beg Qajar, and was appointed as such in 1501.Shahverdi-Sultan, from the Ziyad-oglu clan of the Qajar tribe, was appointed by Shah Tahmasp I (r. 1524-1576) in 1554.