Between the Tisza river and Transylvania, north of the Danube lies the former region of Hungary called the "Banat". After the Battle of Mohács, under Ottoman rule the area north of the Danube saw an influx of Southern Slavs along with the invading Ottoman army. In 1804 the semi-independent Principality of Serbia had formed south of the Danube with Belgrade as its capital. So in 1849, the Danube divided Serbia from the Kingdom of Hungary. The Hungarian district on the northern side of the river was called "Vojvodina", and by that time it was home to almost half a million Serbian inhabitants. According to the census of 1840 in Vojvodina Serbs comprised 49% of the total population. The Serbs of Vojvodina had sought their independence or attachment with the Principality of Serbia on the other side of the Danube. In face of the emerging Hungarian independence movement leading up to the 1848 Revolution the Austrian monarchy had promised an independent status for the Serbs of Vojvodina within the Austrian Empire.