Along with Bessarabia, the city was occupied by the Soviet Union on June 28, 1940, following an ultimatum. In the course of World War II, it was retaken by Romania in July 1941 (under which a treaty regarding the occupation of Transnistria was signed a month later), and again by the USSR in August 1944. Most of the city's Jews were killed during the Holocaust, although Bender continued to have a significant Jewish community well until the 1990s.