Mikado's occupation is that of an Onmyoji. Onmyōji (陰陽師) was one of the classifications of civil servants belonging to the Bureau of Onmyō in ancient Japan's ritsuryo system. People with this title were professional practitioners of onmyōdō.
Onmyōji were specialists in magic and divination. Their court responsibilities ranged from tasks such as keeping track of the calendar, to mystical duties such as divination and protection of the capital from evil spirits. They could divine auspicious or harmful influences in the earth, and were instrumental in the moving of capitals. It is said that an onmyōji could also summon and control shikigami.
Famous onmyōji include Kamo no Yasunori and Abe no Seimei (921–1005). After Seimei's death the emperor had a shrine erected at his home in Kyoto.
Onmyōji had political clout during the Heian period, but in later times when the imperial court fell into decline, their state patronage was lost completely. In modern-day Japan onmyōji are defined as a type of Shinto priest, and although there are many that claim to be mediums and spiritualists, the onmyōji continues to be a hallmark occult figure.