 The Quba Khanate, in development during the rule of Hussein Khan (1722-1758) and his son Fatali Khan (1758-1789), consist of the northern lands of Azerbaijan and southern Dagestan, from Derbent to Lankaran.Since 1722, mountain Jews have settled in the territory of Gudyalchay.Among Russian Jews, the town once was known as "little Jerusalem".