Later the city became a war zone in the lasting and bloody struggle between Ukrainian, Polish and Russian Bolshevik governments in the time of the Russian Revolution, the Ukrainian-Soviet War, the Polish-Ukrainian War and the Polish-Soviet War.