Sheki s a city in northwestern Azerbaijan, in the rayon of the same name.
Shaki is situated in northern Azerbaijan on the southern part of the Greater Caucasus mountain range, 325 km (202 mi) from Baku. The population is 63,000.
According to the Azerbaijani historians, the name of the town goes back to the ethnonym of the Sakas, who reached the territory of modern day Azerbaijan in the 7th century BC and populated it for several centuries.In the medieval sources, the name of the town is found in various forms such as Sheke, Sheki, Shaka, Shakki, Shakne, Shaken, Shakkan, Shekin
There are traces of large-scale settlements in Shaki dating back to more than 2700 years ago. The Sakas were an Iranian people that wandered from the north side of the Black Sea through Derbend passage and to the South Caucasus and from there to Asia Minor in the 7th century B.C. They occupied a good deal of the fertile lands in South Caucasus in an area called Sakasena. The city of Shaki was one of the areas occupied by the Sakas. The original settlement dates back to the late Bronze Age.
Sheki was one of the biggest cities of the Albanian states in the 1st century. The main temple of the ancient Albanians was located there. The kingdom of Shaki was divided into 11 administrative provinces. Shaki was one of the important political and economic cities before the Arab invasion. But as a result of the invasion, Shaki was annexed to the third emirate. An independent Georgia principality, Hereti, was established in times when the Arab caliphate was weak. The city was also ruled by the Kingdom of Georgia, the Atabegs of Azerbaijan and the Khwarazmian Empire, before the Mongol invasion