From 1941 to 1944, the settlement was under Axis occupation and was attached to the Bács-Bodrog County within Horthy's Hungary. During the Hungarian military occupation (1941–1944) settlers of Staro Đurđevo and Sirig were expelled from their homes and Hungarian families from Bukovina were settled on this land. In the period 7 to 9 January 1942 48 inhabitants of the town, 42 Jews, and 6 Serbs, were killed during a series of massacres commonly known as the Novi Sad Raid. Since 1944, Temerin was part of autonomous Yugoslav Vojvodina, which (from 1945) was part of new socialist Serbia within Yugoslavia. In 1944, Hungarians from Bukovina resettled in Hungary, while founders of Staro Đurđevo and Sirig returned to their old settlements. Post-WW2 population censuses recorded Hungarian ethnic majority in the settlement. Population of the town increased from 11,438 in 1948 to 19,613 in 2011. During the 1990s, Serbs replaced Hungarians as the largest ethnic group in the settlement and 2002 census recorded a Serb ethnic majority in Temerin.