Shugendo (mountaineering asceticism), the Way of Yin and Yang and others have developed to go beyond Buddhism and Shinto under the influence of Esoteric Buddhism, and these religions were used to to pray for repose of vengeful spirits in sacred spirit service (goryoe) and other occasions from the expectation for the manifestation of mantra dharani (commandment of true words) or the power of Buddhism attained by accumulated virtues.
密教などの影響を受け仏教や神道の枠に収まりがたい発展を遂げた宗教には修験道、陰陽道などがあり、真言陀羅尼や功徳を積んだ法力への期待から御霊会など怨霊の鎮魂を担っていた。