The Polish–Lithuanian Commonwealth, later to be known as the Commonwealth of Poland, was dismantled in a series of three "partitions" in the second half of the 18th century and divided among its neighbours, Prussia, Habsburg Austria and Russian Empire which took the largest portion of the territory. Slonim was in the area annexed by Russia in 1795. Administratively it was part of the Slonim Governorate until 1797, Vilna Governorate until 1801 and Grodno Governorate until World War I. In 1897 it was the fourth largest city of the governorate after the leading cities of Białystok, Grodno and Brześć.