In September 1939, after the Soviet Union and Nazi Germany simultaneously invaded Poland under the Molotov–Ribbentrop Pact, all the territories were forcibly incorporated into the Soviet republics of Ukraine, Belarus and Lithuania, often by means of terror.