With Genko (Mongolian invasion attempts against Japan) marking a new epoch, there spread the idea that the victory in the secular war was due to the victory in the 'divine war' based on the aforementioned tenjin sokan shiso, and a nationwide call arose for the performance of praying and various other rituals, expansion of shrine estates and construction of temples and shrines as expressions of gratitude for the divine protection.
元寇を画期として、上述する天人相関思想に基づき、地上の戦争に勝利したのは「神の戦争」において勝利したからだとの思想が広まり、神仏の加護に報いるため、祈祷等の諸儀式の興行、社領の拡張と寺社造営とが全国的に叫ばれ始めた。