Hungary and Serbia share a long historical contact, but both have been characterized between cooperation and conflict.
Hungarian and Serbian refugees fled from Ottoman occupations used to be parts of the famous Winged Hussars, a military regiment of the previous Polish–Lithuanian Commonwealth.
However, relationship between two states turned tense in the later half of the 19th century, with the establishment of the Kingdom of Serbia and Serbian interests toward Bosnia and Herzegovina and Vojvodina, both have significant Serbian population.
As part of Austria-Hungary, the Hungarian army formed a significant part of the invading army on Serbia at the World War I. After the war, Hungary lost Vojvodina, a former territory of the Kingdom of Hungary, to Serbia.

Hungary signed a non-aggression and "Treaty of Eternal Friendship" with Yugoslavia on 12 December 1940.
However, Hungary participated in the Axis invasion on Yugoslavia which prompted the then Prime Minister of Hungary Pál Teleki to commit suicide.
In the communist era, Yugoslavia's Josip Broz Tito was against the Hungarian Revolution of 1956 and supportive of Soviet military uses against Hungarians; but the suppression of Hungarian protesters by Soviet army might have influenced Tito's decision to change against the Soviets at the Prague Spring a decade later.

The relationship between Serbia and Hungary went downhill in the 1990s, when Yugoslavia started to disintegrate.
Hungary was one of the earliest supporters of newly independent Croatia, and was among the major participants in the NATO-led bombing of Yugoslavia in 1999.
This strained relations between the two countries, with Hungary also sharing concerns over its Hungarian population in Yugoslavia.
The atrocities of Yugoslav authorities against Hungarians such as deportation of Hungarian population also steered anti-Serbian sentiment in Hungary.
Later, the relations continued to worsen, with Hungary being one of the earliest nations in the world to recognize Kosovo as an independent state.

In 2013, a historical reconciliation was marked after decades of tensions between Belgrade and Budapest.
The President of Hungary, János Áder gave a speech in front of the National Assembly where he issued an official apology for the Hungarian role in the World War II persecution of Serbs such as Novi Sad raid.
In turn, in 2014 the Serbian National Assembly symbolically voided Yugoslav laws on collective guilt of Hungarian people for crimes committed during World War II.
Hungary and Serbia share a long historical contact, but both have been characterized between cooperation and conflict. Hungarian and Serbian refugees fled from Ottoman occupations used to be parts of the famous Winged Hussars, a military regiment of the previous Polish–Lithuanian Commonwealth. However, relationship between two states turned tense in the later half of the 19th century, with the establishment of the Kingdom of Serbia and Serbian interests toward Bosnia and Herzegovina and Vojvodina, both have significant Serbian population. As part of Austria-Hungary, the Hungarian army formed a significant part of the invading army on Serbia at the World War I. After the war, Hungary lost Vojvodina, a former territory of the Kingdom of Hungary, to Serbia.
Hungary signed a non-aggression and "Treaty of Eternal Friendship" with Yugoslavia on 12 December 1940. However, Hungary participated in the Axis invasion on Yugoslavia which prompted the then Prime Minister of Hungary Pál Teleki to commit suicide. In the communist era, Yugoslavia's Josip Broz Tito was against the Hungarian Revolution of 1956 and supportive of Soviet military uses against Hungarians; but the suppression of Hungarian protesters by Soviet army might have influenced Tito's decision to change against the Soviets at the Prague Spring a decade later.
The relationship between Serbia and Hungary went downhill in the 1990s, when Yugoslavia started to disintegrate. Hungary was one of the earliest supporters of newly independent Croatia, and was among the major participants in the NATO-led bombing of Yugoslavia in 1999. This strained relations between the two countries, with Hungary also sharing concerns over its Hungarian population in Yugoslavia. The atrocities of Yugoslav authorities against Hungarians such as deportation of Hungarian population also steered anti-Serbian sentiment in Hungary. Later, the relations continued to worsen, with Hungary being one of the earliest nations in the world to recognize Kosovo as an independent state.
In 2013, a historical reconciliation was marked after decades of tensions between Belgrade and Budapest. The President of Hungary, János Áder gave a speech in front of the National Assembly where he issued an official apology for the Hungarian role in the World War II persecution of Serbs such as Novi Sad raid. In turn, in 2014 the Serbian National Assembly symbolically voided Yugoslav laws on collective guilt of Hungarian people for crimes committed during World War II.
Hungary–Serbia relations