The Sutra of Golden Light (金光明經; Chinese: jin1 guang1 ming2 jing1; Japanese: konkomyo-kyo), which was originally written in India (Sanskrit romanization: Suvarnaprabhasa-sutra), was translated several times into Chinese. Now almost forgotten in China, it became one of the most important sutras in Japan because of its fundamental message, which teaches that the Four Guardian Gods (四天王) protect the ruler who governs his country in the proper manner. For this reason, it won great esteem as a sutra for protecting the country and often was read publicly to ward off threats. Its first reading as a court ceremony was around 660 AD, when the Tang Dynasty of China and Silla of Korea had defeated Baekche of Korea and were threatening Japan.

In 741 Emperor Shomu (聖武天皇) founded provincial monasteries (国分寺) and nunneries (国分尼寺) in each province. The official name of the monasteries was the Temple for Protection of the State by the Four Heavenly Kings Sutra of Golden Light (金光明經四天王護国之寺). The 20 monks who lived there recited the Sovereign Kings Sutra of Golden Light on a fixed schedule to protect the country.