In 1831, following the last will of Joanna Grudzinska, the Duchy of Lowicz became the property of Polish rulers. Since at that time Russian Tsars regarded themselves as Kings of Poland, the duchy belonged to them until World War I. Following the request of General Ivan Paskevich, who was the governor of Poland, Tsar Nicholas I of Russia gave permission for construction of the first railroad in the Russian Partition of Poland. The Warsaw–Vienna railway was completed in 1848, giving Łowicz rail connection with Warsaw, Kraków, Vienna and Wrocław. In 1861, Łowicz Główny railway station was built. Due to the construction of additional line to Koluszki (November 1866), Łowicz emerged as a rail hub, which contributed to its development.