section_path: History/From the 18th century to World War I (1699–1918)
section_name: From the 18th century to World War I (1699–1918)
paragraph_text: From the 18th century to World War I (1699–1918)
  
  Between 1703 and 1711, there was a large-scale war of independence led by Francis II Rákóczi, 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". The uprisings lasted for years. The Hungarian Kuruc army, although taking over most of the country, lost the main battle at Trencsén (1708). Three years later, because of the growing desertion, defeatism, and low morale, the Kuruc forces surrendered.
  
  During the Napoleonic Wars and afterward, the Hungarian Diet had not convened for decades. In the 1820s, the emperor was forced to convene the Diet, which marked the beginning of a Reform Period (1825–1848, Hungarian: reformkor). The Hungarian Parliament was reconvened in 1825 to handle financial needs. A liberal party emerged and focused on providing for the peasantry. Lajos Kossuth emerged as a leader of the lower gentry in the Parliament. A remarkable upswing started as the nation concentrated its forces on modernisation even though the Habsburg monarchs obstructed all important liberal laws relating to civil and political rights and economic reforms. Many reformers (Lajos Kossuth, Mihály Táncsics) were imprisoned by the authorities.
  
  On 15 March 1848, mass demonstrations in Pest and Buda enabled Hungarian reformists to push through a list of 12 demands. Under Governor and President Lajos Kossuth and Prime Minister Lajos Batthyány, the House of Habsburg was dethroned. The Habsburg ruler and his advisors skillfully manipulated the Croatian, Serbian and Romanian peasantry, led by priests and officers firmly loyal to the Habsburgs, into rebelling against the Hungarian government, though the Hungarians were supported by the vast majority of the Slovak, German and Rusyn nationalities and by all the Jews of the kingdom, as well as by a large number of Polish, Austrian and Italian volunteers. In July 1849 the Hungarian Parliament proclaimed and enacted the first laws of ethnic and minority rights in the world. Many members of the nationalities gained the coveted highest positions within the Hungarian Army, like János Damjanich and Józef Bem. The Hungarian forces (Honvédség) defeated Austrian armies. To counter the successes of the Hungarian revolutionary army, Habsburg Emperor Franz Joseph I asked for help from the "Gendarme of Europe", Tsar Nicholas I, whose Russian armies invaded Hungary. This made Artúr Görgey surrender in August 1849. The leader of the Austrian army, Julius Jacob von Haynau, became governor of Hungary for a few months and ordered the execution of the 13 Martyrs of Arad, leaders of the Hungarian army, and Prime Minister Batthyány in October 1849. Kossuth escaped into exile. Following the war of 1848–1849, the whole country was in "passive resistance".
  
  Because of external and internal problems, reforms seemed inevitable, and major military defeats of Austria forced the Habsburgs to negotiate the Austro-Hungarian Compromise of 1867, by which the dual monarchy of Austria-Hungary was formed. This empire had the second largest area in Europe (after the Russian Empire), and it was the third most populous (after Russia and the German Empire). The two realms were governed separately by two parliaments from two capital cities, with a common monarch and common external and military policies. Economically, the empire was a customs union. The old Hungarian Constitution was restored, and Franz Joseph I was crowned as King of Hungary. The era witnessed impressive economic development. The formerly backward Hungarian economy became relatively modern and industrialised by the turn of the 20th century, although agriculture remained dominant until 1890. In 1873, the old capital Buda and Óbuda were officially united with Pest, creating the new metropolis of Budapest. Many of the state institutions and the modern administrative system of Hungary were established during this period.
  
  After the assassination of Archduke Franz Ferdinand in Sarajevo, Prime Minister István Tisza and his cabinet tried to avoid the outbreak and escalating of a war in Europe, but their diplomatic efforts were unsuccessful. Austria-Hungary drafted over 4 million soldiers from the Kingdom of Hungary on the side of Germany, Bulgaria, and Turkey. The troops raised in the Kingdom of Hungary spent little time defending the actual territory of Hungary, with the exceptions of the Brusilov offensive in June 1916 and a few months later when the Romanian army made an attack into Transylvania, both of which were repelled. The Central Powers conquered Serbia. Romania declared war. The Central Powers conquered southern Romania and the Romanian capital Bucharest. In 1916 Franz Joseph died, and the new monarch Charles IV sympathised with the pacifists. With great difficulty, the Central Powers stopped and repelled the attacks of the Russian Empire.
  
  The Eastern Front of the Allied (Entente) Powers completely collapsed. The Austro-Hungarian Empire then withdrew from all defeated countries. Despite great success on the Eastern Front, Germany suffered complete defeat on the Western Front. By 1918, the economic situation had deteriorated (strikes in factories were organised by leftist and pacifist movements) and uprisings in the army had become common. In the capital cities, the Austrian and Hungarian leftist liberal movements and their leaders supported the separatism of ethnic minorities. Austria-Hungary signed a general armistice in Padua on 3 November 1918. In October 1918, Hungary's union with Austria was dissolved.