The second, larger, influx of Russians followed the annexation of Lithuania by the Russian Empire during the Partitions of Poland in the late 18th century. Under Russian rule, power in the region remained primarily in the hands of the Lithuanian nobility, but some administrative jobs were gradually taken over by Russians, who also settled in cities such as Vilnius and Kaunas. Also after the uprising of 1863 in Poland some estates had been confiscated from the local nobility and given to Russian officials. Many of the Russians who migrated to Lithuania were soldiers, sailors, and merchants.