That same year, Hussein-Ali, the Shah's designated ruler of the region, decided to attempt to unify the Azeri khanates as an independent kingdom.
One of his first moves was to relocate his capital from the less defensible Xudat in the Caspian lowlands to Quba where he built a fortress.
Hussein-Ali died in 1757 and his son Fatali Khan carried on the expansion with Quba reaping the riches of its status as the capital.
The region is home to Azerbaijan's largest community of Mountain Jews in the community of Qırmızı Qəsəbə (formerly in Russian: Krasnaya Sloboda, English: Red Town), located just across the river from Quba City.
According to the annual report of the Azerbaijan Statistical Committee, the apple orchards in the Guba-Khachmaz economic region covers nearly 22,000 hectares.
group According to the Statistical Committee of the Republic, the number total of the population was 137,8 thousand in 2000.