 Soviet troops (part of the forces which had invaded on September 17 under the Molotov–Ribbentrop Pact) replaced the Germans around the city.On September 21 Langner formally surrendered to Soviet troops under Marshal Semyon Timoshenko.The Soviet and Nazi forces divided Poland between themselves and a rigged plebiscite absorbed the Soviet-occupied eastern half of Poland, including Lviv, into the Ukrainian Soviet Socialist Republic.