Şamaxı Şamaxı, formerly Shemakha, city, east-central Azerbaijan. It is located 76 miles (122 km) west of Baku and is one of the oldest cities in the republic, dating from the 6th century ad, but the modern city was not incorporated until 1824. From the 9th to the 16th century, it was the residence of the Shirvan shahs.Gabala, which is located about 225 km away from the capital city of Azerbaijan, is a perfect place for rest and tourism. The weather here is mild in spring and autumn, hot in summer and cold in winter. In addition to marvelous weather, Gabala suggests gorgeous historical monuments, which emerge all around the city and its vicinity.