Over the centuries, the composition of the population of Vilnius changed to become ethnically less Lithuanian. According to historian Vytautas Merkys, the city lost a great deal of its old population during the brutal rampages of the Swedish and Russian armies in the 17th and 18th centuries, and they were replaced by the newcomers, however the Lithuanians also constantly inhabited in Vilnius. According to the Russian Empire Census of 1897, only 2.1% (3200 residents) identified themselves as Lithuanian-speakers, while the Poles (30.8%; 47,600 residents) and the Jews (40.0%; 61,800 residents) were the largest ethnic groups of the city. According to the Parish censuses of 1857–1858, the Lithuanian population remained significant in the Vilna Governorate and, according to different authors, was between 23.6% and 50.0% (210,273–418,880 residents). Among the Szlachta (nobility) in Vilnius during the census of 1897, there were 5,301 (46.3%) local nobles and 6,403 (54.7%) newcomers, of these 24.1% noble newcomers came from Vilna Governorate territories, while the rest of newcomers nobles came to Vilnius from Grodno Governorate, Minsk Governorate, Vitebsk Governorate, Kovno Governorate, Vistula Land and other regions.