section_path: History/Union with Hungary and Austria
section_name: Union with Hungary and Austria
paragraph_text: Union with Hungary and Austria
  
  For the next four centuries, the Kingdom of Croatia was ruled by the Sabor (parliament) and a Ban (viceroy) appointed by the king. This period saw the rise of influential nobility such as the Frankopan and Šubić families to prominence, and ultimately numerous Bans from the two families. An increasing threat of Ottoman conquest and a struggle against the Republic of Venice for control of coastal areas ensued. The Venetians controlled most of Dalmatia by 1428, except the city-state of Dubrovnik, which became independent. Ottoman conquests led to the 1493 Battle of Krbava field and the 1526 Battle of Mohács, both ending in decisive Ottoman victories. King Louis II died at Mohács, and in 1527, the Croatian Parliament met in Cetin and chose Ferdinand I of the House of Habsburg as the new ruler of Croatia, under the condition that he protects Croatia against the Ottoman Empire while respecting its political rights.
  
  Following the decisive Ottoman victories, Croatia was split into civilian and military territories in 1538. The military territories became known as the Croatian Military Frontier and were under direct Habsburg control. Ottoman advances in Croatia continued until the 1593 Battle of Sisak, the first decisive Ottoman defeat, when borders stabilised. During the Great Turkish War (1683–1698), Slavonia was regained, but western Bosnia, which had been part of Croatia before the Ottoman conquest, remained outside Croatian control. The present-day border between the two countries is a remnant of this outcome. Dalmatia, the southern part of the border, was similarly defined by the Fifth and the Seventh Ottoman–Venetian Wars.
  
  The Ottoman wars drove demographic changes. During the 16th century, Croats from western and northern Bosnia, Lika, Krbava, the area between the rivers Una and Kupa, and especially from western Slavonia, migrated towards Austria. Present-day Burgenland Croats are direct descendants of these settlers. To replace the fleeing population, the Habsburgs encouraged Bosnians to provide military service in the Military Frontier.
  
  The Croatian Parliament supported King Charles III 's Pragmatic Sanction and signed their own Pragmatic Sanction in 1712. Subsequently, the emperor pledged to respect all privileges and political rights of the Kingdom of Croatia, and Queen Maria Theresa made significant contributions to Croatian affairs, such as introducing compulsory education.
  
  Between 1797 and 1809, the First French Empire increasingly occupied the eastern Adriatic coastline and its hinterland, ending the Venetian and the Ragusan republics, establishing the Illyrian Provinces. In response, the Royal Navy blockaded the Adriatic Sea, leading to the Battle of Vis in 1811. The Illyrian provinces were captured by the Austrians in 1813 and absorbed by the Austrian Empire following the Congress of Vienna in 1815. This led to the formation of the Kingdom of Dalmatia and the restoration of the Croatian Littoral to the Kingdom of Croatia under one crown. The 1830s and 1840s featured romantic nationalism that inspired the Croatian National Revival, a political and cultural campaign advocating the unity of South Slavs within the empire. Its primary focus was establishing a standard language as a counterweight to Hungarian while promoting Croatian literature and culture. During the Hungarian Revolution of 1848, Croatia sided with Austria. Ban Josip Jelačić helped defeat the Hungarians in 1849 and ushered in a Germanisation policy.
  
  By the 1860s, the failure of the policy became apparent, leading to the Austro-Hungarian Compromise of 1867. The creation of a personal union between the Austrian Empire and the Kingdom of Hungary followed. The treaty left Croatia's status to Hungary, which was resolved by the Croatian–Hungarian Settlement of 1868 when the kingdoms of Croatia and Slavonia were united. The Kingdom of Dalmatia remained under de facto Austrian control, while Rijeka retained the status of corpus separatum previously introduced in 1779.
  
  After Austria-Hungary occupied Bosnia and Herzegovina following the 1878 Treaty of Berlin, the Military Frontier was abolished. The Croatian and Slavonian sectors of the Frontier returned to Croatia in 1881, under provisions of the Croatian–Hungarian Settlement. Renewed efforts to reform Austria-Hungary, entailing federalisation with Croatia as a federal unit, were stopped by World War I.