In ancient Japan, the arrival of Buddhism closely relates to the national construction and the national centralization of power. Prince Shōtoku and the Soga family fought and overcame the Mononobe family, who had handled the ancient Japanese religion, and elaborated a plan for national governance based on the unification of the legal codes system and Buddhism. While cooperating with the Soga family, Prince Shōtoku, who was the regent of the Empress Suiko, showed a deep understanding in "foreign" Buddhism, and planned to stabilize national politics through the use of Buddhism. The thought that national peace and security came through the power of Buddhism is called the "making a country safe" thought. In the Nara period, in particular the times of Emperor Shōmu, the Kokubun-ji temples and Kokubun-ni-ji temples were erected throughout the whole country and Tōdai-ji Temple and the Daibutsu were erected in Nara. The Buddhist policy of the state reached its apex during the Nara period, as evidenced by Jianzhen of the Tang dynasty bringing an imperial ordination platform to Todai-ji Temple,