JapanApril 20, 2026 · 3 min read

Onmyōdō · The way
of yin and yang

At the Heian court there were specialists who were neither Shintō priests nor Buddhist monks and who still had a say in important decisions. They were called the Onmyōji.

Onmyōdō · the way of yin and yang
Onmyōdō · the court magic of Heian Japan

In tenth-century Japan, in the court culture of the Heian period, there was a government office for the unseen side of the world: the Onmyōryō (陰陽寮), the Bureau of Yin and Yang. The people who worked there were the Onmyōji (陰陽師), specialists in a tradition we now call Onmyōdō (陰陽道). They observed the stars, kept the calendar, determined favorable days and directions, and performed protective rituals for the court. When the court had important decisions to make, their advice was taken very seriously.

This article goes deeper into one topic from the overview Japanese shamanism and looks at Onmyōdō as the courtly line of Japanese magic.

The roots in China

The foundations of Onmyōdō came to Japan from China and Korea in the sixth and seventh centuries, together with Buddhism and Chinese writing culture. They included the theory of yin and yang, the five phases (五行, Japanese gogyō, Chinese wuxing: wood, fire, earth, metal, water), astronomy, calendar science, and the heavenly stems and earthly branches.

Over time this became something of its own in Japan, because the cosmology merged with Shintō and with esoteric Buddhism (Mikkyō). An Onmyōji drew no sharp line between his calculations, the invocation of kami and Buddhist formulas. That is very typical of Japan. When something new arrives, the old is not thrown away. Both live on side by side and blend over the centuries.

What an Onmyōji did

  • Astronomy and calendar. The Onmyōryō produced the calendar, set favorable days for ceremonies and warned of unfavorable ones.
  • Divination, above all with the divination board (式盤, shikiban) and the method called rikujin (六壬).
  • Directions. A well-known example is katatagae (方違え), where you avoided traveling in an unfavorable direction by taking a detour.
  • Purification and protection, when a house was restless or a misfortune was traced back to spiritual causes.
  • Shikigami. In the legends, Onmyōji work with spirit helpers. More on that in Abe no Seimei and the Shikigami.

The key figures

The most famous figure is Abe no Seimei (921–1005). Many legends surround him, for example the story that his mother was the fox Kuzunoha. A handbook of divination, the Senji ryakketsu (占事略决), is attributed to him. Besides the Abe there was the Kamo family. Roughly speaking, for a long time the Kamo handled the calendar and the Abe handled astronomy, and both families shaped the bureau for centuries.

Some tools of Onmyōdō

Directions and space

In Onmyōdō every direction has its own quality, element and place in the zodiac. This played a big role when buildings were planned. The capital Heian-kyō was laid out according to the rules of geomancy, and the teaching on the favorable layout of a house (家相, kasō) is still known in Japan today. Of course this reminds you of Chinese feng shui, which goes back to the same roots.

The nine stars

The nine stars (九星, kyūsei) are a system that assigns years, months and days to nine basic qualities. From this you derive which force dominates at which time. In Japan it is still widespread in popular astrology.

Kuji Kiri

The nine syllables Rin-Pyō-Tō-Sha-Kai-Jin-Retsu-Zai-Zen also appear around Onmyōdō. Japanese Kuji Kiri, however, can't be assigned to a single school. The first sources come from China, the practice reached Japan in several waves over the centuries, and in Japan it grew into a system of its own out of Daoism, Japanese folk magic and Shingon Mikkyō. More on that in Kuji Kiri in a shamanic context.

Is Onmyōdō shamanism?

In the strict anthropological sense, not quite. The Onmyōji is more of a scholar and ritual specialist than a shaman who travels in trance. He works with calculation, ritual and writing. Still, the overlap is considerable. He deals with spirit beings, he lives in a worldview where the visible and the invisible are connected, and he mediates between the two for his community. My own take is that Onmyōdō is a kind of courtly, well-ordered sister of shamanism.

Onmyōdō today

In 1870, at the beginning of the Meiji period, Onmyōdō was abolished as a state institution. It didn't disappear, though. It lives on in families who preserved old writings, in shrines like Seimei Jinja in Kyoto, and in local traditions such as Izanagi-ryū in Kōchi. In pop culture it is everywhere anyway. Novels and films like Onmyōji and manga and anime like Kekkaishi or Jujutsu Kaisen draw on its motifs. For many people that is the first contact, and some of them then want to know the real history behind it.

If you work shamanically and appreciate a clear order of yin and yang, five phases and directions, Onmyōdō offers a fascinating way in. Which side draws you more, the cosmology or the legends around Seimei?

The courtly magic of Japan

Onmyōdō is part of the wider landscape of Japanese shamanism. If you'd like to go deeper in English, the Japanese Grimoire Society on Skool is where we talk about it together.

Related articles

Dr. Mark Hosak

PhD in Japanology · Researcher and practitioner in the Shingon tradition

Three years of research in Japan · familiarity with the Onmyōdō sources.

Eileen Wiesmann

Historian M.A. · PhD candidate · Shaman

Research at the Abe no Seimei shrine in Kyoto · focus on Daoist ritual in Japanese folk magic.