In 1923 Krakowiec returned to Poland, but shortly thereafter in 1939, according to the Molotov–Ribbentrop Pact, Krakowiec became victim of genocide, ethnocide and other crimes and atrocities detailed by Gestapo–NKVD conferences, e.g. the Massacres of Poles in Volhynia and Eastern Galicia performed by Ukrainians and after the establishment of District of Galicia in 1941 The Holocaust (Shoah) of the Jews. After World War II, Krakowiec became part of Ukrainian Soviet Socialist Republic, part of the Soviet Union and was since known as Krakovets. In 1990 Krakovets became part of the independent Ukraine, since 2014 invaded by Russia.