This compromise—engineered by Francis Deák (1803-1876) and Emperor Franz Joseph (who ruled from 1848 to 1916)—resulted in the dual state of Austria-Hungary, which played a significant role in European power-politics until nationality problems and involvement in World War I on the German side resulted in its dissolution in 1918-1919.The demise of Austria-Hungary was accompanied by the dismemberment of historic Hungary, codified in the Peace Treaty of Trianon in 1920.Communist excesses and the relaxation that followed Stalin's death in 1953 led to the Hungarian Revolution of 1956, the most significant anti-Soviet uprising of the postwar period.Put down by Soviet military intervention, it was followed by a brief period of retribution and then by a new communist regime under János Kádár (who ruled from 1956 to 1988), who initiated a policy of political liberalization (1962) and economic reform (known as the New Economic Mechanism of 1968).
In the mid-nineteenth century the Habsburgs and the Hungarians clashed in the Hungarian Revolution and War of Independence (1848-1849), and two decades later they united in the Austro-Hungarian Compromise of 1867.
Matthias even conquered Moravia and eastern Austria (including Vienna) and also established a brilliant Renaissance royal court at Buda (now part of Budapest).
Medieval Hungary's greatness ended with its defeat at the hands of the Ottoman Turks at the Battle of Mohács in 1526.
Turkish conquest was followed by the country's trisection, which lasted for nearly two centuries.
Western and northwestern Hungary ("Royal Hungary") became part of the Habsburg Empire ruled from Vienna; central Hungary was integrated into the Ottoman Turkish Empire; and eastern Hungary evolved into the autonomous principality of Transylvania, whose semi-independence under Turkish suzerainty ended with the country's reconquest and reunification by the Habsburgs of Vienna in the late seventeenth and early eighteenth centuries.