In the 16th century, the whole region was included into the Ottoman Empire. Subsequently, it became an area disputed between the Ottoman Empire and the Habsburg Monarchy. After the Treaty of Belgrade from 1739 which defined the Habsburg-Ottoman border in Podunavlje, the region, as well as the local Serb people, became divided between the two empires. In both these areas, Serb people fought for their autonomy and independence. After the First and Second Serbian Uprising (in 1804 and 1815), an autonomous Ottoman Principality of Serbia was created in the south, while after the Serbian Uprising in Vojvodina (in 1848–1849), an autonomous Austrian Voivodeship of Serbia and Banat of Temeschwar was created in the north. The two autonomous areas, however, did not had the same fate; while the northern voivodeship was abolished in 1860, the southern principality gained full independence in 1878 and was transformed into the Kingdom of Serbia in 1882. In 1918, after the Habsburg defeat in the First World War, the northern Podunavlje was also included into the Kingdom of Serbia, which subsequently became part of the Kingdom of Serbs, Croats and Slovenes (later renamed to Yugoslavia). Since 2006, the whole region is part of an independent Republic of Serbia.