According to the first population census of the Commonwealth in 1790, the Vilnius Voivodeship (without the Grodno County) had a population of 718,571 residents, while the Vilnius County had 105,896 residents (the whole Grand Duchy after the Second Partition had a population of 1,333,493 then). Shortly after, the city population decreased to just 17,500 residents in 1796 due to the fierce battles of the Vilnius uprising in 1794, which was the last attempt to save the Grand Duchy's capital from falling under the complete Russian control. Though, after the rebels defeat, Vilnius was incorporated into the Russian Empire and was its third largest city in the beginning of the 19th century. After a few decades of the Russian despotism, Vilnius demographics were once again affected by the November Uprising in 1830 and the January Uprising in 1863, during which rebels attempts were made to restore the statehood. According to the Russian Empire Census of 1897, Vilnius had 154,532 residents and later grown to 205,300 residents in 1909, while the Vilna Governorate had 1,561,713 residents in 1897.