Hungary: a history from the Magyar conquest to the EU

The Magyars rode into the Carpathian basin in the ninth century and built a kingdom that lasted a thousand years. For a century and a half, Buda was an Ottoman city.

By Last reviewed

Hungary
Hungary and its neighbours. Borders approximate.

Key facts

Capital
Budapest
Kingdom founded
1000, with the coronation of Stephen I
Population
About 9.6 million
Language
Hungarian, a Finno-Ugric language
Memberships
NATO since 1999, European Union since 2004
Ottoman heritage
Buda was under Ottoman rule from 1541 to 1686

Through the ages

The main periods of Hungary's history, 895 CE to today. Recent centuries are drawn wider so they can be read.

  1. Magyar settlement895 CE to 1000
  2. Medieval kingdom1000 to 1526
  3. Ottoman and Habsburg division1526 to 1699
  4. Habsburg rule1699 to 1867
  5. Austria-Hungary1867 to 1918
  6. Interwar kingdom and war1920 to 1945
  7. Communist Hungary1949 to 1989
  8. Republic of Hungary1989 to today

Timeline

  1. c. 895 CE
    Civilisation

    The Magyar conquest

    Magyar tribes led by Árpád cross the Carpathians and settle the Danube basin.

  2. 1000
    Empires and dynasties

    Saint Stephen

    Stephen I is crowned the first king of Hungary and makes the country Christian. 20 August, his feast day, is Hungary's national day.

  3. 1241
    Wars and conflict

    The Mongol invasion

    The Mongols crush the Hungarian army at Mohi and devastate the kingdom before withdrawing in 1242.

  4. 1458
    Culture and faith

    Matthias Corvinus

    Matthias Corvinus becomes king. His court at Buda is a centre of the Renaissance, and his library is one of the finest in Europe.

  5. 1526
    Wars and conflict

    The Battle of Mohács

    Suleiman the Magnificent defeats the Hungarian army at Mohács; King Louis II dies fleeing the field. The kingdom is split between the Ottomans and the Habsburgs.

  6. 1541
    Empires and dynasties

    Ottoman Buda

    The Ottomans take Buda, which remains an Ottoman provincial capital for 145 years. Its Turkish baths are still in use today.

  7. 1686
    Wars and conflict

    Buda is retaken

    A Habsburg-led army recaptures Buda, and by 1699 almost all of Hungary is under Habsburg rule.

  8. 15 March 1848
    Independence

    The 1848 revolution

    Hungarians rise for reform and independence. The Habsburgs crush the revolution in 1849 with Russian help. 15 March is a national holiday.

  9. 1867
    Politics

    The Compromise

    Austria and Hungary become a Dual Monarchy, with Hungary running its own internal affairs. Buda, Óbuda and Pest are united as Budapest in 1873.

  10. 4 June 1920
    Treaties and agreements

    The Treaty of Trianon

    After defeat in the First World War, Hungary loses about two-thirds of its territory to its neighbours, leaving millions of Hungarians outside its borders.

  11. 1944
    Wars and conflict

    The Holocaust in Hungary

    After German forces occupy Hungary, about 437,000 Jews are deported in a few weeks, most to their deaths at Auschwitz.

  12. 23 October 1956
    Politics

    The Hungarian Revolution

    A popular uprising against Soviet-backed rule is crushed by Soviet tanks within weeks. About 200,000 Hungarians flee abroad.

  13. 1989
    Politics

    The Iron Curtain opens

    Hungary dismantles its border fence with Austria, helping thousands of East Germans escape west and hastening the fall of communism.

  14. 2004
    Treaties and agreements

    Joining the EU

    Hungary joins the European Union, five years after joining NATO.

A people from the east

The Hungarians, or Magyars, came from the steppes to the east. Around 895 their tribes, led by Árpád, crossed the Carpathian mountains and settled the wide plain of the Danube basin. After decades of raiding across Europe, they settled down, and in the year 1000 their prince Stephen was crowned king and made Hungary a Christian kingdom. Their language, Hungarian, belongs to the Finno-Ugric family, distantly related to Finnish and Estonian and unlike the Slavic and Germanic languages around it.

Kings, Mongols and the Renaissance

The medieval kingdom grew strong and large, ruling Croatia and Transylvania. It survived a devastating Mongol invasion in 1241. Under Matthias Corvinus in the late fifteenth century, Buda became a centre of the Renaissance, with a famous royal library.

Mohács and Ottoman Buda

In 1526 Sultan Suleiman the Magnificent destroyed the Hungarian army at Mohács, and the young King Louis II died in the retreat. Hungary was divided: the Ottomans took the centre, including Buda in 1541, the Habsburgs held the west and north, and Transylvania became a semi-independent principality. For 145 years Buda was an Ottoman city, with mosques, minarets and bath houses, several of which are still used today. The tomb of the dervish Gül Baba, who died in Buda in 1541, remains a place of Muslim pilgrimage.

A Habsburg-led alliance recaptured Buda in 1686, and by 1699 nearly all of Hungary was under Habsburg rule.

Revolution, compromise and loss

Hungarians rose for independence in 1848. The revolution was crushed in 1849 with Russian help, but in 1867 Austria agreed to a Compromise that made Hungary an equal partner in the Dual Monarchy. Budapest was formed in 1873 and grew into a grand capital. Defeat in the First World War was a catastrophe: the Treaty of Trianon in 1920 took about two-thirds of Hungary’s land and left millions of Hungarians in neighbouring states, a wound still felt in Hungarian politics.

War, communism and Europe

Hungary allied with Germany in the Second World War. When Germany occupied the country in 1944, about 437,000 Jews were deported within weeks, most of them murdered at Auschwitz. After the war Hungary became a communist state. In October 1956 its people rose against Soviet rule; the revolution was crushed by Soviet tanks, and about 200,000 people fled. In 1989 Hungary opened its border with Austria, a crack in the Iron Curtain that helped bring down communism across the region. It joined NATO in 1999 and the European Union in 2004.

For our latest reporting on Hungary, see the news listed on this page.

Landmarks and heritage

Medieval to 19th century

Budapest, the Banks of the Danube and Buda Castle

Budapest

The castle hill, the parliament building and the bridges over the Danube. A UNESCO World Heritage Site.

16th century

Tomb of Gül Baba

Budapest

The tomb of an Ottoman dervish who died in 1541, a place of pilgrimage for Muslims visiting Hungary.

Founded 996

Pannonhalma Archabbey

Western Hungary

A Benedictine monastery founded before the kingdom itself. A UNESCO World Heritage Site.

Terms you will meet in the news

Magyars
The Hungarian people, who arrived in the Carpathian basin from the east in the late ninth century.
Trianon
The 1920 peace treaty that cut Hungary to about a third of its former size.
Dual Monarchy
Austria-Hungary from 1867 to 1918, two states under one Habsburg monarch.

Quick answers

Was Hungary ruled by the Ottomans?

Yes. After the Battle of Mohács in 1526, the Ottomans took much of Hungary, and Buda was an Ottoman city from 1541 to 1686.

What happened in Hungary in 1956?

A popular uprising against Soviet-backed communist rule broke out on 23 October 1956 and was crushed by Soviet forces.

What language do Hungarians speak?

Hungarian, a Finno-Ugric language, distantly related to Finnish and Estonian and unlike the languages of its neighbours.

Sources and further reading

Compiled by The Indus Compass from the sources above and standard reference works, and reviewed 27 November 2026. Dates before the modern era are approximate and some are debated by historians. Spotted a mistake? Tell the newsroom and we will correct it.