In 1862, the Warsaw – Bydgoszcz railway line opened, leading Kutno to become an important railway junction and a trade and industry center. Directly before and during the period of the January Uprising, Kutno was the seat of the head of the Gostynin province.