Middle Ages
The principality was succeeded by the Christian Kingdom of Hungary with the coronation of St Stephen I (son of principal Géza. Originally called Vajk until baptized) at Esztergom on Christmas Day 1000. The first kings of the kingdom were from the Árpád dynasty. He fought against Koppány and in 998, with Bavarian help, defeated him near Veszprém. The Catholic Church received powerful support from Stephen I, who with Christian Hungarians and German knights wanted a Christian kingdom established in Central Europe. Stephen I of Hungary was canonized as a Catholic saint in 1083 and an Eastern Orthodox saint in 2000.
Around the 11th century, the Kingdom of Hungary became a Christian state, and Catholicism in the Hungarian Kingdom was a state religion.
After his death, a period of revolts and conflict for supremacy ensued between the royalty and the nobles. In 1051, armies of the Holy Roman Empire tried to conquer Hungary, but they were defeated at Vértes Mountain. The armies of the Holy Roman Empire continued to suffer defeats; the second greatest battle was at the town now called Bratislava, in 1052. Before 1052, Peter Orseolo, a supporter of the Holy Roman Empire, was overthrown by king Samuel Aba of Hungary.
This period of revolts ended during the reign of Béla I. Hungarian chroniclers praised Béla I for introducing new currency, such as the silver denarius, and for his benevolence to the former followers of his nephew, Solomon. He was succeeded by Ladislaus I of Hungary, who further stabilized and strengthened the kingdom. He was also canonized as a saint. Under his rule Hungarians successfully fought against the Cumans and acquired parts of Croatia in 1091. Due to a dynastic crisis in Croatia, with the help of the local nobility who supported his claim, he managed to swiftly seize power in northern parts of the Croatian kingdom (Slavonia), as he was a claimant to the throne due to the fact that his sister was married to the late Croatian king Zvonimir who died without an heir.
However, kingship over all of Croatia would not be achieved until the reign of his successor Coloman. With the coronation of King Coloman as "King of Croatia and Dalmatia" in Biograd in 1102, the two kingdoms of Croatia and Hungary were united under one crown. Although the precise terms of this relationship became a matter of dispute in the 19th century, it is believed that Coloman created a kind of personal union between the two kingdoms. The nature of the relationship varied through time, Croatia retained a large degree of internal autonomy overall, while the real power rested in the hands of the local nobility. Modern Croatian and Hungarian historiographies mostly view the relations between Kingdom of Croatia (1102–1526) and Kingdom of Hungary from 1102 as a form of a personal union, i.e. that they were connected by a common king. Also, one of the greatest Hungarian jurists and statesmen of the 16th century, István Werbőczy in his work Tripartitum treats Croatia as a kingdom separate to Hungary.
Especially Arabic and Byzantine travelers from this time praised the richness country, the dense pastures, the nicely cultivated lands, the plentiful animals in waters and forests. They said that the wheat is cheap, the markets are populous, the cities flourish and the folk are wealthy. Although it is hardly credible that they refer to all layers of society, the documents were inspired by the reality.
In 1222, Andrew II issued the Golden Bull which laid down the principles of law.
In 1241, Hungary was invaded by the Mongols and while the first minor battles with Subutai's vanguard probes ended in seeming Hungarian victories, the Mongols finally destroyed the combined Hungarian and Cuman armies at the Battle of Mohi. The Mongol invasions ultimately resulted in the death of 15-25% of Hungary's population, some 300,000-500,000 people in total. In 1242, after the end of the Mongol invasion, numerous fortresses to defend against future invasion were erected by Béla IV of Hungary. In gratitude, the Hungarians acclaimed him as the "Second Founder of the Homeland", and the Hungarian Kingdom again became a considerable force in Europe.
In 1260 Béla IV lost the War of the Babenberg Succession, his army was defeated at the Battle of Kressenbrunn by the united Bohemian forces. However, in 1278, Ladislaus IV of Hungary and Austrian troops fully destroyed the Bohemian army at the Battle on the Marchfeld.
The Árpád dynasty died out in 1301 with the death of Andrew III. Subsequently, Hungary was ruled by the Angevins until the end of the 14th century, and then by several non-dynastic rulers – notably Sigismund, Holy Roman Emperor and Matthias Corvinus – until the early 16th century.
When Andrew III's predecessor, Ladislaus IV, was assassinated in 1290, another nobleman was set up as titular King of Hungary: Charles Martel of Anjou. Charles Martel was the son of King Charles II of Naples and Mary of Hungary, the sister of Ladislaus IV. However, Andrew III took the crown for himself and ruled without inconvenience after Charles Martel's death in 1295. Upon Andrew's death in 1301, the country was divided between powerful lords hostile to each other. A coalition of some of these oligarchs first crowned Wenceslaus III, who quickly fled from the anarchy, then Otto III, who was forced to leave by the Kán family. Charles, remaining as the only candidate, was finally crowned King Charles I in 1310. His famous battle at Rozgony, described as "most cruel battle since the Mongol invasion of Europe" by the Chronicon Pictum, ended his war of reunification.
He implemented considerable economic reforms and defeated the remaining nobility who were in opposition to royal rule, led by Máté Csák III. The kingdom of Hungary reached an age of prosperity and stability under Charles I. The gold mines of the Kingdom were extensively worked and soon Hungary reached a prominent standing in European gold production. The forint was introduced as a currency, replacing the denars, and soon after Charles's reforms were implemented, the economy of the Kingdom started to prosper again, having fallen into a parlous state following the Mongol invasion.
Charles exalted the cult to Saint Ladislaus I, using him as a symbol of bravery, justice and purity. He also venerated his uncle, Saint Louis of Toulouse. On the other hand, he gave importance to the cults of the princesses Saint Elizabeth and Saint Margaret, which added relevance to the lineage inheritance through the feminine branches.
Charles restored the royal power which had fallen into feudal lords' hands, and then made the lords swear loyalty to him. For this, he founded the Order of Saint George in 1326, which was the first secular chivalric order in the world, and included the most important noblemen of the Kingdom.
Charles married four times. His fourth wife was Elizabeth, the daughter of Władysław I of Poland. When Charles died in 1342, his eldest son by Elizabeth succeeded him as Louis I. In the first years of his reign, Louis was advised closely by his mother, making her one of the most influential personalities in the Kingdom.
Charles had arranged the marriage of his second son, Andrew, with his cousin Joanna, the granddaughter of King Robert of Naples, in 1332. Robert died in 1343, bequeathing his kingdom to Joanna but excluding the claim of Andrew. In 1345, a group of noble Neapolitan conspirators murdered Andrew at Aversa. Almost immediately, Louis declared war on Naples, conducting a first campaign in 1347–1348 and a second in 1350. He eventually signed peace with Joanna in 1352. Louis also waged wars against the Serbian Empire and the Golden Horde, restoring the Hungarian monarchs' authority over territories along the frontiers which had been lost during the previous decades.
In 1370, Louis's uncle, Casimir III of Poland, died without male issue. Louis succeeded him, thus establishing the first union of Hungary and Poland. This lasted until 1382 when Louis himself died without male issue; his two daughters, Mary and Jadwiga, then ascended the thrones of Hungary and Poland respectively.
Louis I of Hungary always kept good and close relationships with the Holy Roman Emperor Charles IV of Luxembourg and finally proclaimed Charles's son Sigismund of Luxembourg to succeed him as the co-ruler of Louis' daughter and Sigismund's bride, Mary. Initially, Mary reigned as a sole monarch which led to turmoil, perhaps due to gender expectations of the time. Sigismund married her in 1385 and finally became a co-ruler in 1387. After his wife's death in 1395, he remained alone on the throne. Sigismund became a renowned king who created many improvements in the Hungarian law system and who rebuilt the palaces of Buda and Visegrád. He brought materials from Austria and Bohemia and ordered the creation of the most luxurious building in all of central Europe. In his laws can be seen the traces of the early mercantilism. He worked hard to keep the nobility under his control. A great part of his reign was dedicated to the fight with the Ottoman Empire, which started to extend its frontiers and influence to Europe. In 1396 was fought the Battle of Nicopolis against the Ottomans, which resulted in a defeat for the Hungarian-French forces led by Sigismund and Philip of Artois, Count of Eu. However, Sigismund continued to successfully contain the Ottoman forces outside of the Kingdom for the rest of his life.
Losing popularity among the Hungarian nobility, Sigismund soon became victim of an attempt against his rule, and Ladislaus of Anjou-Durazzo (the son of the murdered King of Naples Charles II of Hungary) was called in and crowned. Since the ceremony was not performed with the Hungarian Holy Crown, and in the city of Székesfehérvár, it was considered illegitimate. Ladislaus stayed only few days in Hungarian territory and soon left it, no longer an inconvenience for Sigismund. In 1408 he founded the Order of the Dragon, which included most of the relevant monarchs and noblemen of that region of Europe at that time. This was just a first step for what was coming. In 1410, he was elected King of the Romans, making him the supreme monarch over the German territories. He had to deal with the Hussite movement, a religious reformist group that was born in Bohemia, and he presided at the Council of Constance, where the theologist founder Jan Hus, was judged. In 1419, Sigismund inherited the Crown of Bohemia after the death of his brother Wenceslaus of Luxembourg, obtaining the formal control of three medieval states, but he struggled for control of Bohemia until the peace agreement with the Hussites and his coronation in 1436. In 1433, was crowned as Holy Roman Emperor by the Pope and ruled until his death in 1437, leaving as his only heir his daughter Elizabeth of Luxembourg and her husband. The marriage of Elizabeth was arranged with the Duke Albert V of Austria, who was later crowned as King Albert of Hungary in 1437.
The Hungarian kingdom's golden age was during the reign of Matthias Corvinus (1458–1490), the son of John Hunyadi. His nickname was "Matthias the Just". He further improved the Hungarian economy and practised astute diplomacy in place of military action whenever possible. Matthias did undertake campaigning when necessary. From 1485 until his death, he occupied Vienna, aiming to limit the influence and meddling of the Holy Roman Empire in Hungary's affairs.
At the time of the initial Ottoman encroachment, the Hungarians successfully resisted conquest. John Hunyadi was leader of the Crusade of Varna, in which the Hungarians tried to expel the Turks from the Balkans. Initially, they were successful, but later at the Battle of Varna, the Ottomans won a decisive if Pyrrhic victory. Wladyslaw III was decapitated during this battle.
In 1456, John Hunyadi delivered a crushing defeat of the Ottomans at the Siege of Belgrade. The Noon Bell commemorates the fallen Christian warriors. In the 15th century, the Black Army of Hungary was a modern mercenary army, with the Hussars the most skilled troops of the Hungarian cavalry. In 1479, under the leadership of Pál Kinizsi, the Hungarian army destroyed the Ottoman and Wallachian troops at the Battle of Breadfield. The army of Hungary destroyed its enemies almost every time when Matthias was king.
Matthias died without legitimate heir, and was thus succeeded by Vladislaus II Jagiellon (1490–1516), the son of Casimir IV of Poland. In turn, Vladislaus was succeeded by his son Louis II (1516–26).
In 1526, at the Battle of Mohács, the forces of the Ottoman Empire led by Suleiman the Magnificent annihilated the Hungarian army. In trying to escape, Louis II drowned in the Csele Creek. The leader of the Hungarian army, Pál Tomori, also died in the battle.