 In 1769, Agsu city was ruined by the troop of Fatali khan (khan of khanate Guba), the inhabitants were removed to Shamakhi.Based on sources, all inhabitants were settled down in Shamakhi in a brief time.S.