In 1895, the town housed the barracks of the Samur regiment and the Terek-Dagestan fortress artillery, and grew into a self-sufficient entity with merchants, conscripts, an Orthodox church, and a post office. During the Russian Empire, the settlement was the administrative capital of the Gunibsky Okrug.
