At the beginning of the 12th century, large-scale temple construction was carried out by Fujiwara no Kiyohira, the founder of the Northern Fujiwara clan. The temple was built to placate souls of all who died in the Former Nine Years War and the Latter Three Years' War. Kiyohira, who had been forced into bloody battles and lost his family in the war, resolved to bring peace to the region based on an ideal society following the teachings of Buddha.
In the early 12th century, a prominent Fujiwara clan leader, Fujiwara no Kiyohira, initiated large-scale temple construction to appease the spirits of those who perished in the Former Nine Years War and the Latter Three Years' War. This endeavor was motivated by Kiyohira's personal tragedy, having been compelled into brutal conflicts and losing his family during the war.