Good question, no one know that for sure but at least there areslightly controversial historical theories, results of variousgenetic researches and etnographical results. .
A…s well it is a tricky question how close the relationship isbetween the population and the language. .
The current position states that ungarians are relatives ofFinns and Esthonians and are originatd from a territorry west fromthe Ural mountains. They are originated form Europe however theyspeek a definitely non-Indoeuropean language. .
The Hungarian remembrance and tradition holds the Huns, theAvars as their predecessors, as well some smaller nations joinedthe Hungarian tribes which formed it's origin of conciousness verymuch(Jazigs, Pechenegs, Baskirs, Kuns, Kabars). .
LAter on extremely much nations joined or at least mixed withHungarians rusulting the today known nation to be formed(Croats,Serbs, Romanians, Jews, more kind of German people, Slovaks,Rusines) as well with smaller other additional collocation withsmaller influence(Greeks, Armenians, Turkish people, Bulgars). .
You must not forget about the biggest minority that considershimself normally as Hungarian but in fact they aren't: the Gypsies.Tey are as well not 1 tribe or 1 nation, however via their uniquerace-marks they can be really distinguished from the nativeHungarians. .
Finally Hungary is the biggest mixture of white people. ( Full Answer )