 In the course of the administrative reform carried out in 1708 by Peter the Great, the territory was included into Archangelgorod Governorate.In 1780, the governorate was abolished and transformed into Vologda Viceroyalty.At the same time, Nikolsk became the seat of an uyezd and was granted town rights.