In May 1919 г. Vyshgorodok appeared in the frontline of advancing pro-czarist Russian North-Western Army of Gen. Nikolai Yudenich supported by Estonian and Latvian republican units. The frontline as of noon 1 February 1920 was stipulated as the border demarcation line by the Latvian–Soviet Peace Treaty of 1920 between Latvian Republic and Russian Soviet Federative Socialist Republic, what left Vyshgorodok with Latvia.