but Ottomans recaptured it in 1690. In 1697, Habsburg army definitively retook Ilok from the Ottomans and the Muslim population fled. During the Habsburg rule, Ilok belonged to the Kingdom of Slavonia, a Habsburg province that belonged to both the Kingdom of Croatia, and the Kingdom of Hungary. Between 1849 and 1868, the Kingdom of Slavonia was completely separate Habsburg crownland, and in 1868 it was joined with the Kingdom of Croatia to form the Kingdom of Croatia-Slavonia. In the late 19th and early 20th century, Ilok was a district capital in the Syrmia County of the Kingdom of Croatia-Slavonia. In 1918, Ilok first became part of the State of Slovenes, Croats and Serbs, and then part of the Kingdom of Serbs, Croats and Slovenes (in 1929 renamed Kingdom of Yugoslavia). From 1929 to 1939, Ilok was part of the Danube Banovina and, from 1939 to 1941, of the Banovina of Croatia within the Kingdom of Yugoslavia. Between 1941 and 1944, during the Axis occupation of Yugoslavia, it belonged to the Independent State of Croatia. From 1945 onward, it was part of the People's Republic of Croatia within Socialist Yugoslavia. On 17 October 1991 during the beginning of the Croatian War of Independence, non-Serbs fled as the Yugoslav National Army led by Serbs paramilitaries occupied the area, but spared it from destruction due to its rapid surrounding and occupation. Between 1991 and 1995, Ilok was part of the Republic of Serb Krajina. The area was peacefully reintegrated into Croatia in 1998. Ilok is underdeveloped municipality which is statistically classified as the First Category Area of Special State Concern by the Government of Croatia. Demographics According to the 2021 census, the town proper had 3,928 inhabitants, and the whole municipality of Ilok had 5,147. Before the 2001 census, the town was considered part of the old municipality of Vukovar. With pronounced issue of population decline in eastern Croatia caused by population ageing, effects of the Croatian War of Independence and emigration after the accession of Croatia to the European Union, the population of the town and three suburban settlements at the time of 2021 census dropped to 5,045 from 2011 population of 6,767. Ilok (settlement) According to the 2011 census, settlement of Ilok had 5,072 inhabitants. 2011 census 1991 census 1910 census Slovaks in Ilok Ilok is one of the centres of the cultural life of the Slovaks of Croatia community.