Read the story
In 901, one of Kyoto's most powerful men was shipped off to the edge of the empire. Sugawara no Michizane was a scholar, a poet, and Minister of the Right. His rival, Fujiwara no Tokihira, accused him of scheming over the succession, and Michizane was demoted to a minor post in Dazaifu.
Leaving, he wrote a poem to the plum tree in his garden. When the east wind blows, it asked, send me your scent, and do not forget the spring just because your master is gone. Legend says the tree did better than that. It pulled up its roots and flew after him. That tree, the tobiume, still stands beside the main hall here.
Michizane died in Dazaifu in 903. When the oxcart carrying his body stopped at a temple gate and refused to move, people took it as his wish to stay. Two years later, a mausoleum rose over his grave. The shrine grew from it.
Then the capital began to suffer. Plague and drought. Sons of Emperor Daigo died one after another. Lightning struck the palace again and again. Tokihira himself died in 909. An angry spirit, Kyoto decided, was settling scores. The court restored Michizane's rank, scrubbed his exile from the records, and built him a shrine in Kyoto. In time he became Tenjin, a god of storms who mellowed into the god of learning.
So from January to March, this shrine fills with students. They come at exam time to buy study charms and hang wooden prayer plaques, and the ones who pass come back to say thank you. Around them, some six thousand plum trees burst into bloom.
During the main hall's recent renovation, Tenjin lodged in a temporary hall by architect Sou Fujimoto, crowned with a floating forest, until May 2026.
The patron of every nervous test-taker is a man who failed the cruelest exam of all, court politics, and was promoted to god for it.