Hunor and Magor were, according to Hungarian legend, the ancestors of the Huns and the Magyars. The legend was first promoted in Gesta Hunnorum et Hungarorum. The legend's aim in providing a common ancestry for the Huns and the Magyars was to suggest historical continuum of the Kingdom of Hungary with the Hun Empire.
The legend of Hunor and Magor, which claims they were ancestors of both the Huns and the Magyars, was first presented in "Gesta Hunnorum et Hungarorum." The purpose of this narrative was to establish a shared ancestry between the Huns and the Magyars. This was intended to imply continuity between the Kingdom of Hungary and the Hun Empire.