When the nomadic Magyar (Hungarian) tribes descended upon Western Europe 1100 years ago, Westerners alternatively identified them as the returning Huns (hence "Hungarian") or the wild hordes of Gog and Magog (Magog-Magyar). In later Chrstian times, the feudal/clerical upper class of the Hungarian Kingdom internalised both concepts into their mythologic history(-re-writing).
A strange result was that with the ascent of nationalism, Attila and Gog/Magog fully completed the inversion from evil forces to noble Barbarian ancestors that, say, only wanted to create a peaceful unified Europe. *Lunatic*, n. One whose delusions are out of fashion.