In 1944 the town was occupied in the course of Operation Tempest of the insurgent Polish Home Army, but the Polish nationalists were soon pushed aside as the town was occupied by the Red Army. In 1945 it was annexed by the Soviet Union and attached to the Ukrainian SSR. Since 1991 it has been a part of Ukraine.