Goryō
The Goryō (御 霊, Goryō) are ghosts originating in Japanese mythology, whose name is broken down into 2 kanji: Go (御, Go meaning honorable), and Ryō (霊, Ryō which refers to a ghost or spirit ). The Goryō are the vengeful ghosts of aristocrats, especially those who were martyred in life. They were very common in the Heian period. The popular belief is that they are capable of catastrophic revenge, from destruction of corpses, to the invocation of typhoons and earthquakes. Tenjin
Tenjin is an example of Goryō. Tenjin is a Shinto god, who, in life, was the governor of the Fujiwara clan, known as Sugawara no Michizane. He was assassinated in a plot devised by another member of the Fujiwara clan. Immediately after this event, the capital was hit by heavy rains and storms with lightning. Several influential people of the Fujiwara clan died while the fire caused by the lightning and the floods caused by the rain destroyed their residences. The surviving court attributed what had happened to Michizane's furious spirit. The emperor, to appease the furious spirit, ordered that the place where he lived be restored and the orders of exile burned. It was named Tenjin, which means "God of Heaven." An altar was built in Kitano, which was considered the most important "official" altar.
wiki