The Arg and palace of the Shirvanshahs. The Shirvanshah was a dynasty from neighboring Shirvan and briefly ruled over Baku (for about 100 years in the late 1300s to 1400s) before the whole region was reincorporated into Safavi Iran. On front, the royal mosque, to the right, the Shirvanshah tombs and royal bath, to the left, the royal household.