right|250px

is one of two main temples of the Sōtō school of Zen Buddhism, the largest single religious denomination in Japan (by number of temples in a single legal entity). The other is Sōji-ji in Yokohama. Eihei-ji is located about east of Fukui in Fukui Prefecture, Japan. In English, its name means "temple of eternal peace" (in Japanese, 'ei' means "eternal", 'hei' means "peaceful", and 'ji' means "Buddhist temple").

Its founder was Eihei Dōgen, who brought Sōtō Zen from China to Japan during the 13th century. The ashes of Dōgen and a memorial to him are in the Jōyōden (the Founder's Hall) at Eihei-ji. William Bodiford of UCLA writes that, "The rural monastery Eiheiji in particular aggrandized Dōgen to bolster its own authority vis-à-vis its institutional rivals within the Sōtō denomination." at the Sanmon are four kings standing guard named Shitenno; the Buddha hall's main altar has three statues of Buddhas past, present and future; the Hatto displays Kannon the bodhisattva of compassion, and four white lions (called the a-un no shishi); the Yokushitsu has Baddabara; the Sanshokaku has a statue of Hotei; and the Tosu displays Ucchusma.

History

thumb|left|upright=.6|[[Dōgen founded the temple in 1244.]]

Dōgen became a monk at age 14 and studied at Enryaku-ji on Mount Hiei. At age 24, he traveled to Song China and became a disciple of Rujing at Tiantong Temple on Mount Tendo, where he devoted himself to zazen. He returned to Japan, carrying on the Zen tradition of "shikantaza" (simple sitting). He initially resided at Kennin-ji in Kyoto, and later built Kōshō-ji in the suburbs of Fukakusa (abolished and later rebuilt in Uji, Kyoto), where he devoted himself to preaching and writing. However, he faced severe persecution from the Tendai Buddhist forces on Mount Hiei. At the request of one of his followers, a samurai named Hatano Yoshishige, Dōgen left Kōshō-ji Temple in 1243 and relocated to Shibishō in Echizen Province, where Yoshishige's territory was located. Yoshishige initially invited Dōgen to take over Yoshimine-ji, a Tendai temple, associated with the Hakusan mountain cult, was located in the snowy mountains. Dōgen spent the winter here, and the following year, in 1244, he built Sanshoho Daibutsu-ji, closer to the village than Yoshimine-ji. This marked the founding of Eihei-ji, and in 1246, the temple name was changed to Kisshōzan Eihei-ji. The temple name comes from "Eihei," the era name during the reign of Emperor Ming of the Later Han Dynasty, when Buddhism was first introduced to China, and means "eternal peace."

Dōgen appointed a successor, but sometime after his death the abbacy of Eihei-ji became hotly disputed, a schism now called the sandai sōron. Until 1468, Eihei-ji was not held by the current Keizan line of Sōtō, but by the line of Dōgen's Chinese disciple Jakuen. At one point, the temple fell into such decline that it was practically abandoned, but the 5th abbot, Giun, rebuilt it and established the foundations that continue to this day. After 1468, when the Keizan line took ownership of Eihei-ji in addition to its major temple Sōji-ji and others, Jakuen's line and other alternate lines became less prominent.

As Eihei-ji and Sōji-ji became rivals over the centuries, Eihei-ji made claims based on the fact of Dōgen's original residence there. William Bodiford of UCLA wrote: