It also originated from Japanese folk beliefs such as the Ancient Shinto and so on, and in ancient times, it was called Kannagi referring to prayer 'so as to prevent spirits or deity dwelling there from becoming violent gods.'
その起源は古神道などの日本の民間信仰にもあり、古くは神和ぎ（かんなぎ）といい「そこに宿る魂や命が、荒ぶる神にならぬよう」にと祈ることである。