Fast_Moon t1_je01vvl wrote

Japan has something similar. The god of education, Tenjin, was originally a poet named Sugawara no Michizane who lived 1000 years ago. During a regime change, he got ousted and exiled and died in shame. After his death, a bunch of calamities befell the government, leading people to believe that Michizane's vengeful spirit was cursing them, so they started worshipping him as a god to placate him.