In the course of the administrative reform carried out in 1708 by Peter the Great, the area was included into Ingermanlandia Governorate (since 1710 known as Saint Petersburg Governorate), and in 1727 Novgorod Governorate split off. In 1772, as a result of the First Partition of Poland, Pskov Governorate was created, and the area on the right bank of the Western Dvina was included into Toropetsky Uyezd of Pskov Governorate. In 1777, Pskov Governorate was transformed into Pskov Viceroyalty, and in 1796, the viceroyalty was abolished, and Pskov Governorate was restored.