Ahmed FASIH is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Ahmed FASIH @22

‘Both the court and local elites cherished Buddhism for its ability to control the violence of deities, spirits, and demons of all kinds, including the kami. Usually, this entailed building temples next to shrines, where monks dedicated themselves to the conversion of the kami by exposing them to the Buddha's benign teachings. By reciting sutras, and other Buddhist practices, these monks created merit or good karma, which was transferred to the kami.’

Breen & Teeuwen on controlling pesky kami.