page_title: Ganja, Azerbaijan
section_title: Feudal era
hierarchical_section_title: Ganja, Azerbaijan / History / Feudal era
caption_attribution_description: English: These used to be gates of Gelati. Now it leads to a little vineyard maintained by the monastery. The second door is long gone. ქართული: განძის ჭიშკარი გელათის მონასტერში Azərbaycanca: Gəncə darvazası başqa bir fraqment
context_page_description: Ganja is Azerbaijan's second largest city, with a population of around 332,600. It was named Elisabethpol in the Russian Empire period. The city regained its original name, Ganja, in 1920 during the first part of its incorporation into the Soviet Union. However, its name was changed again in 1935 to Kirovabad and retained that name through most of the rest of the Soviet period. In 1989, during perestroika, the city regained its original name.
context_section_description: According to medieval Arabic sources, the city of Ganja was founded in 859-60 by Muhammad ibn Khalid ibn Yazid ibn Mazyad, the Arab governor of the region in the reign of the caliph al-Mutawakkil, and so-called because of a treasure unearthed there. According to the legend, the Arab governor had a dream where a voice told him that there was a treasure hidden under one of the three hills around the area where he camped. The voice told him to unearth it and use the money to found a city. He did so and informed the caliph about the money and the city. Caliph made Muhammad the hereditary governor of the city on a condition that he would give the money he found to the caliph.
  Foundation of the city by Arabs is confirmed by the medieval Armenian historian Movses Kagankatvatsi, who mentions that the city of Ganja was founded in 846–47 in the canton of Arshakashen by the son of Khazr Patgos, "a furious and merciless man".
  Historically an important city of the South Caucasus, Ganja has been part of the Sassanid empire, Great Seljuk Empire, Kingdom of Georgia, Atabegs of Azerbaijan, Khwarezmid Empire, Il-Khans, Timurids, Qara Qoyunlu, Ak Koyunlu, the Safavid, the Afsharid, the Zand and the Qajar empires of Persia/Iran. Prior to the Iranian Zand and Qajar rule, following Nader Shah's death, it was ruled locally for a few decades by the khans/dukes of the Ganja Khanate, who themselves were subordinate to the central rule in mainland Iran and were a branch of the Iranian Qajar family. Ganja is also the birthplace of the famous poet Nizami Ganjavi.
  The people of Ganja experienced a temporary cultural decline after an earthquake in 1139, when the city was taken by king Demetrius I of Georgia and its gates taken as trophies which is still kept in Georgia, and again after the Mongol invasion in 1231. The city was revived after the Safavids came to power in 1501, and incorporated all of Azerbaijan and beyond into their territories. The city came under brief occupation by the Ottomans between 1578–1606 and 1723–1735 during the prolonged Ottoman-Persian Wars, but nevertheless stayed under intermittent Iranian suzerainty from the earliest 16th century up to the course of the 19th century, when it was forcefully ceded to neighbouring Imperial Russia.
caption: Gate of Ganja, now in Gelati Monastery, Imereti, Georgia
exif: {"Image ImageDescription": "", "Image Make": "SONY", "Image Model": "CYBERSHOT", "Image Orientation": "Horizontal (normal)", "Image XResolution": "72", "Image YResolution": "72", "Image ResolutionUnit": "Pixels/Inch", "Image DateTime": "2006:04:23 14:18:55", "Image YCbCrPositioning": "Co-sited", "Image ExifOffset": "218", "Thumbnail Compression": "JPEG (old-style)", "Thumbnail Make": "SONY", "Thumbnail Model": "CYBERSHOT", "Thumbnail Orientation": "Horizontal (normal)", "Thumbnail XResolution": "72", "Thumbnail YResolution": "72", "Thumbnail ResolutionUnit": "Pixels/Inch", "Thumbnail DateTime": "2006:04:23 14:18:55", "Thumbnail JPEGInterchangeFormat": "851", "Thumbnail JPEGInterchangeFormatLength": "3626", "EXIF ExposureTime": "1/30", "EXIF FNumber": "21/10", "EXIF ExposureProgram": "Program Normal", "EXIF ISOSpeedRatings": "320", "EXIF ExifVersion": "0210", "EXIF DateTimeOriginal": "2006:04:23 14:18:55", "EXIF DateTimeDigitized": "2006:04:23 14:18:55", "EXIF ComponentsConfiguration": "YCbCr", "EXIF CompressedBitsPerPixel": "2", "EXIF ExposureBiasValue": "0", "EXIF MaxApertureValue": "2", "EXIF MeteringMode": "CenterWeightedAverage", "EXIF LightSource": "Unknown", "EXIF Flash": "Flash did not fire", "EXIF FocalLength": "93/10", "EXIF FlashPixVersion": "0100", "EXIF ColorSpace": "sRGB", "EXIF ExifImageWidth": "2048", "EXIF ExifImageLength": "1536", "Interoperability InteroperabilityIndex": "R98", "Interoperability InteroperabilityVersion": "[48, 49, 48, 48]", "EXIF InteroperabilityOffset": "642", "EXIF FileSource": "Digital Camera", "EXIF SceneType": "Directly Photographed"}