Granica węgiersko‑austriacka ukształtowana około 1140 r. przebiegała przez obszar, na którym stykały się wschodnie obniżenie Alp, zachodnie krańce Niziny Panońskiej i całej Kotliny Karpackiej. Przylegający do granicy obszar Węgrzy nazywali Őrvidek, Chorwaci – Gradišće, a Niemcy – Burgenland. Znaczny odsetek zachodnich części czterech przygranicznych komitatów węgierskich stanowiła ludność niemiecka i słowiańska, szczególnie Chorwaci. Konferencja pokojowa w Paryżu w 1919 r. odrzuciła ambitne plany czeskie przekształcenia tego obszaru w „słowiański korytarz”. Zwycięskie mocarstwa Ententy podjęły natomiast decyzję wyrażoną w traktacie podpisanym w Saint Germain i potwierdzoną w traktacie podpisanym w Trianon o przyznaniu Austrii zachodnich powiatów węgierskich. Protesty węgierskie przeciwko tej decyzji wyraziły się m.in. w podjęciu walki zbrojnej przez ludność węgierską zamieszkałą na terenach przyznanych Austrii. Przy życzliwym dla Węgrów pośrednictwie Włoch zapadła decyzja o przeprowadzeniu referendum w regionie Sopronu. Dzięki korzystnemu dla Węgrów wynikowi referendum region Sopronu pozostał w granicach państwa węgierskiego. Po wytyczeniu granicy w terenie w latach 1922‑1923 została ona zatwierdzona w 1924 r. Na odebranym Węgrom obszarze powstał odrębny kraj związkowy Austrii – Burgenland.