There also were two dangerous fires, in 1736 and 1790, and after the Congress of Vienna (1815), the town became part of Russian-controlled Congress Poland, where it remained until World War I. In 1836, Uniejów was granted to a Tsarist General Karl Wilhelm von Toll. As punishment for the unsuccessful Polish January Uprising, Uniejów was one of many towns stripped of its town charter in 1870. In 1919 Uniejów again became a town after Poland regained independence in 1918.