 In 1735, Nadir Shah issued an order about laying out the new city on the bank of Agsuchay River.After construction of the new city, the inhabitants of Shamakhi were resettled here; residences of rulers of Shamakhi also were removed here.In 1743, inhabitants rebelled against the Nadir Shah's yoke.