Austria-Hungary was ruled by the House of Habsburg for six years.
=== From the 18th century to World War I (16991918) ===Between 1703 and 1711, there was a large-scale war of independence led by Francis II Rkczi, who after the dethronement of the Habsburgs in 1707 at the Diet of nod, took power provisionally as the ruling prince for the wartime period, but refused the Hungarian crown and the title "king"
Austria-Hungary collapsed after World War I, and the subsequent Treaty of Trianon established Hungary's current borders, resulting in the loss of 71% of its territory, 58% of its population, and 32% of ethnic Hungarians

