In August 1914, the city and the surrounding area were a focal point of Battle of Stallupönen between Russian and Imperial German armies, an opening battle on the Eastern Front of World War I. It was occupied by the Russian army between August 18, 1914 and February 18, 1915.