After a suppressed uprising in 1848–1849, the Kingdom of Hungary and its diet were dissolved, and territory of the Kingdom of Hungary was divided into 5 districts, which were Pest &amp; Ofen, Ödenburg, Preßburg, Kaschau and Großwardein, directly controlled from Vienna while Croatia, Slavonia, and the Voivodeship of Serbia and Banat of Temeschwar were separated from the Kingdom of Hungary between 1849 and 1860. This new centralized rule, however, failed to provide stability, and in the wake of military defeats the Austrian Empire was transformed into Austria-Hungary with the Austro-Hungarian Compromise of 1867, by which Kingdom of Hungary became one of two constituent entities of the new dual monarchy with self-rule in its internal affairs.