But, Doman ASHIYA has told the Emperor badly fabricated tales about Seimei, so that Seimei has to compete in divining with Doman but defeats him, and Doman is beheaded because Yasuna, Seimei's father, who killed by Doman but has been revived by Seimei, has appealed to the Imperal court, and Seimei receives the degree of Doctor of Astorology.
しかし、蘆屋道満に讒奏され、占いの力くらべをすることになり、結局これを負かして、道満に殺された父の保名を生き返らせ、朝廷に訴えたので、道満は首をはねられ、晴明は天文博士となった。