Goryō
In a broad sense, Goryō (御霊; Japanese: [ɡoɾʲoː]) is an honorific for a spirit, especially one that causes hauntings, and the term is used as a synonym for onryō (怨霊, vengeful Japanese ghosts). In a narrower sense, it refers to a noble or accomplished person who lost a political power struggle or died prematurely from an epidemic or other disease, becoming an onryō that brings pestilence or famine and is later enshrined as a kami in Shinto shrines.