The first member of the dynasty mentioned by a nearly contemporary written source was Álmos. The Byzantine Emperor Constantine VII recorded in his "De Administrando Imperio" that Álmos was the first Grand Prince of the federation of the seven Magyar tribes ("megas Turkias arkhon"). Álmos probably accepted the supremacy of the Khagan of the Khazars in the beginning of his rule, but, by 862, the Magyar tribal federation broke free from the Khazar Khaganate. Álmos was either the spiritual leader of the tribal federation ("kende") or its military commander ("gyula").