 After the latter one disintegrated into smaller feudal domains, the area subsequently passed through the Rostov, Uglich, Yaroslavl, and Beloozero principalities, before ending up in the Grand Duchy of Moscow in the 15th century; by the end of the 15th century, the Novgorod Republic was annexed by Moscow as well.In the course of the administrative reform carried out in 1708 by Peter the Great, the area was included into Ingermanland Governorate (known since 1710 as Saint Petersburg Governorate), but in 1727 it was transferred to Moscow Governorate.In 1775, Tver Viceroyalty was formed from the lands which previously belonged to Moscow and Novgorod Governorates, and in 1776 Vesyegonsky Uyezd was established as a part of Tver Viceroyalty.