Preußische Ostbahn
In 1701 the town became part of the Kingdom of Prussia, from 1773 on within the newly formed province of East Prussia. Within the Kingdom of Prussia and the later German Empire, the settlement developed into an important Prussian Eastern Railway junction in the second half of the 19th century.