But its rulers strove continuously to control also the western shores of the Caspian Sea from Ḳuba (the modern town of Quba) in the district of Maskat in the north, to Baku in the south. To the north of all these lands lay Bab al-Abwab or Derbend, and to the west, beyond the modern Goychay, the region of Shaki. In mediaeval Islamic times, and apparently in pre-Islamic Sāsānid ones also, Shirwan included the district of Layzan, which probably corresponds to modern Lahidj, often ruled as a separate fief by a collateral branch of the Yazidi Shirwan Shahs.[1]