Its name derives from that of the Barmak tribe that inhabited this place. Khizi people lived in this region in the second millennium BC. The region was involved in Silk Road trade. It is even believed that Dada Gorgud was originally from the Khizi-Barmak region. The German traveller Adam Oleari, who visited the Khizi-Barmak region, heard about Dada Gorgud from the local people and recorded that Darband residents say that his grave is in the city cemetery. They said that Gorgud was a friend of Muhammad, sat at his feet, learnt from him and lived for 300 years after his death. His grave is in a cave on a rocky mountain. The Dada Gorgud ballade told about the Khizi- Barmak region, the Oghuz plateau, the Jighatay plain and Mount Boybayim. It also takes into account many other facts. It is claimed that Dada Gorgud was from the Khizi-Barmak region. He went to the city of Darband from there.
The territory of the Khizi-Barmak region belonged to the Turkic-speaking Sak Massaget state which existed from the 5th century BC. “Barmak” means “bar” – product and “mak” – priest, i.e. a “productive priest”. The knowledgeable Barmaks used cuneiforms. Strabo recorded that there was a “large and densely-populated holy region in Albania. People worshipped Helia (Sun) here. The Albanian name of the God of the Sun is not known. That place was Mount Barmak. The Alins (mountain people) who lived around the mountain worshipped the sun. The mountain people of the Khizi-Barmak region worshipped the sun until the 7th century. Along with that, the Barmak tribe worshipped fire. They regarded agriculture as a holy trade. Around Mount Barmak, there was a fire temple created due to burning natural gas. In the 3rd-6th centuries, fire worship was a state religion in Khizan Kingdom. In the 7th century, the Khizi- Barmak mountain people converted to Islam. It is believed that Roman troops of Emperor Domitian, Caesar Augustus Germanicus and Julius Maximus’s Legio XII Fulminata arrived in Absheron. The legion took control of the coastal areas of the Khizi-Barmak region. They left after spending the winter here. In the first century AD, Hun, Sabir and Khazar Turkic tribes passed through Darband and started to settle in the Albanian steppe, including the Khizi-Barmak region. Beginning from the 9th-11th centuries, the Silk Road which passed through the Khizi-Barmak region helped establish trade relations with many European and Asian cities. The Khizi-Barmak region was located on the trade road that connected Baku, Dagestan, North Caucasus and southern Russian lands. In the Middle Ages, the Khizan Kingdom (Khizi Kingdom) existed here. After the Russia-Iran war of 1804-1813, it was taken over by Russia together with the Guba Khanate.