After the Vistula–Oder Offensive in early 1945, the Soviet Union took control over the territories. The ethnic German population either fled the Red Army or were later expelled and the territories became part of the People's Republic of Poland.