Follow the Heian poet and statesman who became Tenjin, Japan's patron of learning, and find the plum-scented shrines that keep his memory alive.
Published October 22, 2026 at 1:43 AM JST | By Tokyo Paul
Quick answer: Sugawara no Michizane (845 to 903) was a Heian-period scholar, poet and court minister who is now honored as Tenjin, the kami of learning. After he died in exile at Dazaifu in Kyushu, the court built Kitano Tenmangu in Kyoto in his memory. Today students visit Tenmangu shrines to pray for success in studies and exams.
Every winter, students across Japan head to shrines with a small wooden plaque and a wish for good exam results. Many of them are visiting a Tenmangu shrine, a place dedicated to a real scholar who lived more than eleven centuries ago. This guide tells the story of Sugawara no Michizane, explains how a court official became a kami (a Shinto deity or sacred spirit), and shows what travelers can see at his best-known shrines. It also touches on his poetry and the plum trees he loved.
Michizane was born in 845 into a family that served the Heian court as teachers and writers. His grandfather taught history, and his father ran a private school that prepared young men for the entrance examination of the national academy. Michizane passed that exam himself and began his career as a court scholar in 870.
His rise was steady. By 877 he was a professor of literature, and he later held the title of Doctor of Literature, the highest professorial office at the academy. Writing in Chinese was a core skill at the Heian court, and he was admired for it.
He is also remembered for poetry from a young age. Accounts say he composed waka, the classic Japanese short poem, as a small child. This early talent became part of his legend, and it helps explain why students later saw him as a model for patient study.
The Heian court, based in Kyoto, was a world of rank, ceremony and refined taste. Michizane served in several ministries and spent a period as governor of Sanuki Province, in present-day Kagawa Prefecture on Shikoku, from 886 to 890. He returned to the capital and became a trusted adviser to Emperor Uda.
His promotions continued through the 890s, and by 897 he had reached the senior third rank. One of his best-known decisions came in 894, when he supported ending the official embassies to Tang China. Those missions had carried scholars and monks across the sea for generations, including the monk Kukai.
The end of the embassies is often discussed alongside the growth of a more homegrown court culture, though the reasons were complex. Michizane's role in the decision shows that he was a respected voice at the highest levels of government.
In 901, accusations from a rival at court led to Michizane's demotion and removal to Dazaifu, the regional government headquarters in northern Kyushu. He was a long way from the capital and from his family. He lived there for about two years and died in 903.
During this period he kept writing. His Chinese-style poems from exile were collected, and they show a tender, reflective voice. A famous poem speaks to the plum tree he left behind in Kyoto, and it gave rise to one of Japan's best-loved legends.
The story goes that the tree longed for its master so strongly that it flew through the air to Dazaifu and took root near him. The tree known as the tobiume, or flying plum, still stands beside the main hall at Dazaifu Tenmangu. Whether you read it as legend or poetry, it captures the affection people have long felt for him.
After Michizane's death, the court faced a run of troubles, including drought, illness and lightning strikes at the capital. Many people at the time connected these events with his spirit. The response was an act of honor: the court built a shrine for him to pay him respect and calm his spirit.
Kitano Tenmangu in Kyoto was first built in 947. About seventy years after his death, he was deified as Tenjin, a name that can be understood as the heavenly or sky kami. In 993 he was granted the senior first rank posthumously, one of the highest honors the court could give.
Over time his image changed. He became less a spirit to be feared and more a friendly patron of calligraphy, poetry, education and scholarship. This pattern of turning a powerful figure into a protective kami is a recurring theme in Japanese religion, and Michizane's story is its most famous example.
Michizane left a large body of work. His Chinese-style poems were gathered in a collection compiled in 900, titled Kanke Bunso, and a later collection holds the poems written during his exile. One of his waka appears in the Ogura Hyakunin Isshu, the famous anthology of one hundred poems by one hundred poets.
A poetry collection called the Shinsen Man'yoshu is traditionally credited to him, although scholars debate that attribution. This is a good example of how a famous name can attract works over the centuries.
For readers who enjoy literature, his writing is a window into Heian taste. It shows the balance between Chinese learning and Japanese feeling that later shaped works such as The Tale of Genji. Even without reading the originals, visitors can sense that tradition when they see poems carved or hung at the shrines.
Dazaifu Tenmangu stands in Dazaifu, Fukuoka Prefecture, on the site of Michizane's grave. The main hall was first built in 905, two years after his death. Many visitors make the trip from Fukuoka City, and it works well as a half-day outing.
The grounds are famous for plum trees. The shrine is said to hold about six thousand ume trees of 167 varieties, so late winter is a particularly lovely time to visit. A statue of an ox rests near the grounds, commemorating the ox that, according to tradition, stopped with Michizane's body.
The flying plum stands to the right of the main hall. Opening hours and seasonal events change, so check the shrine's official information before you go, and allow time for a slow walk among the trees.
Kitano Tenmangu is in Hakuraku-cho, in the Kamigyo ward of Kyoto, and was first built in 947. Its grounds are filled with red and white plum trees, and a Plum Blossom Festival is held on February 25 each year. Visitors enjoy the blossoms alongside tea and sweets.
The shrine also holds a flea market on the 25th of every month, a lively occasion for browsing antiques, crafts and snacks. Visitors planning a trip may want to time it for the 25th, though crowds can be larger that day.
Kitano is also known for a famous tea gathering that Toyotomi Hideyoshi hosted on its grounds, one of the grand cultural events of the Momoyama period. Because the shrine is a lively local gathering place, it makes an easy addition to a Kyoto day alongside other northwest Kyoto sights.
Tenjin is the patron of learning, so students and parents are the most common visitors. The usual visit follows the standard shrine manners: bow at the torii gate, purify your hands at the water pavilion, make an offering, bow, clap and pray. Many people buy an ema (a small wooden plaque) and write a wish for exams on the back, then hang it at the shrine.
Charms called omamori are also popular, and many are designed for success in school. Travelers need not be students to enjoy the experience. The shrines are beautiful, the atmosphere is warm, and the story behind them is among the most moving in Japanese history.
If you have limited time, choose one shrine and linger. Michizane's story is a reminder that learning, poetry and loyalty can be honored in a place of beauty, and that a person's reputation can grow for centuries after their lifetime.
Want to go deeper? Tokyo Paul's book Manga-Style Japanese History: Shoguns, Samurai & Sake is available on Amazon.
Michizane was one of the finest scholars and poets of the Heian court, rising to a top academic post. After his death in exile in 903, the court honored him with shrines, and he was deified as Tenjin about seventy years later. Over time he became the patron of study, and students still pray to him.
Tenjin is the name of the kami, the deified form of Michizane. Tenmangu is the name given to shrines dedicated to him. Two of the best known are Kitano Tenmangu in Kyoto and Dazaifu Tenmangu in Fukuoka Prefecture, though many other shrines across Japan honor him too.
According to legend, a plum tree that Michizane loved in Kyoto flew through the air to Dazaifu, where he was in exile, because it missed him. The tree called the tobiume stands beside the main hall at Dazaifu Tenmangu. People tell the story as a reflection of his famous poem about the plum.
To explore further, see Sugawara no Michizane, Dazaifu Tenmangu and Kitano Tenmangu.
More guides from Tokyo Paul: Ume Season: Japan's Plum Blossoms Before the Cherry, Omikuji, Ema and Omamori: Shrine Fortunes and Charms and Ojuken: Entrance Exams for Japanese Schools.