 The Khazar Khagan sent his envoys to the Magyars shortly after they fled from Levedia and settled in Etelköz , according to Porphyrogenitus . The Khagan invited Levedi to a meeting , proposing to make Levedi the supreme head of the confederation of the Magyar tribes in exchange for the acceptance of his suzerainty . Instead of accepting the offer , Levedi suggested the new rank should be offered to another voivode , Álmos , or the latter 's son , Árpád . The Khagan accepted Levedi 's proposal and upon his demand the Magyar chiefs proclaimed Árpád their head . According to Kristó and Spinei , Porphyrogenitus ' report preserved the memory of the creation of a central office within the federation of the Magyar tribes . Róna @-@ Tas says the story relates only a " change of dynasty " ; the fall of Levedi 's family and the emergence of the Árpád dynasty . In contrast with Porphyrogenitus 's story , the Gesta Hungarorum says it was not Árpád , but his father who was elected the first supreme prince of the Magyars . 
