It is said that, in the era of Emperor Daigo, the post of the Shinto priest was handed over to Imperial Prince Koen, a son of Emperor Uda and then the Imperial Prince changed his name to MUNAKATA no Kiyouji to serve as Daiguji (the supreme priest).
醍醐天皇の頃、宇多天皇の子光遠親王に神主職を譲り、親王は宗形清氏と改名して大宮司職（神主）についたという。