In January 1945, as the Soviets launched their massive offensive into eastern Germany, Count Thassilo von Saurma-Hoym, a descendant of Karl Georg von Hoym, left the Dyhernfurth palace along with his family and fled westward. In February, the palace was set on fire, probably by Soviet soldiers. When the town was handed over to Poland, its German population was expelled, in accordance to the Potsdam Agreement. It was repopulated by Poles, expelled from former eastern Poland annexed by the Soviet Union, particularly from Stanisławów and Sniatyn.