The Tenjin faith, centered on the approximately 12,000 Tenmangu shrines across Japan, traces its origin to one of the most dramatic transformations in Japanese religious history: the posthumous deification of Michizane Sugawara (845-903) from an exiled courtier to a god of thunder, scholarship, and divine justice.
Michizane served as Minister of the Right under Emperor Uda, reaching the pinnacle of aristocratic power before being slandered by Fujiwara no Tokihira and exiled to Dazaifu in Kyushu in 901. He died there in 903, composing poetry to his beloved plum trees until the end. After his death, a series of calamities struck the imperial court — sudden deaths, lightning strikes — which were interpreted as the vengeful spirit (onryō) of the unjustly treated courtier. To appease this spirit, the court restored his honors posthumously, and shrines were built in his name.
The two principal shrines — Dazaifu Tenmangu in Fukuoka and Kitano Tenmangu in Kyoto — represent distinct aspects of this faith. Dazaifu Tenmangu, built above his grave site in 919, is the ‘sacred origin’ of the faith. Kitano Tenmangu, founded in 947 in the capital for the purpose of spirit appeasement, became the ‘head shrine’ that spread Tenjin belief throughout the country.
The association with scholarship arose naturally from Michizane’s extraordinary reputation as a poet and scholar during his lifetime. As education expanded from the aristocracy to the warrior class and eventually to commoners in the Edo period, the ‘god of the learned man who was wronged’ became Japan’s preeminent deity of academic achievement. Today, Tenmangu shrines receive millions of ema (votive tablets) from students each examination season, continuing a tradition of petition to divine intellect and justice that is over a millennium old.