, formally called , is a Buddhist temple in Japan located at the foot of Mount Hiei, in the city of Ōtsu in Shiga Prefecture. It is a short distance from both Kyoto, and Lake Biwa, Japan's largest lake. The head temple of the Jimon sect of Tendai, it is a sister temple to Enryaku-ji, at the top of the mountain, and is one of the four largest temples in Japan. Altogether, there are 40 named buildings in the Mii-dera complex. Mii-dera is temple 14 in the Saigoku Kannon Pilgrimage. History Founding, and feuds Onjō-ji was founded in the Nara period. The temple was founded in 672 following a dispute over Imperial succession. Emperor Tenji had died, and his son was killed by Tenji's brother, who was then enthroned as Emperor Tenmu. Temmu founded Onjō-ji in honor and memory of his brother. The name Mii-dera ("Temple of Three Wells") came about nearly two centuries later. It was given this name by Enchin, one of the earliest abbots of the Tendai Sect. The name comes from the springs at the temple which were used for the ritual bathing of newborns, and in honor of Emperors Emperor Tenji and Emperor Tenmu, and Empress Jitō, who contributed to the founding of the temple. Today, the Kondō, or Main Hall, houses a spring of sacred water. Under Enchin's guidance, from 859 to his death in 891, Mii-dera gained power and importance, eventually becoming (along with Tōdai-ji, Kōfuku-ji, and Enryaku-ji) one of the four chief temples charged with the spiritual guidance and protection of the capital. It was during this time also that Enryaku-ji and Mii-dera split away from one another, developing two branches of the Tendai sect, called Jimon and Sanmon. For the most part, this was more a geographic rivalry than an ideological schism, but it was an intense one nonetheless, and only grew more severe after Enchin's death. The rivalry turned violent in the second half of the 10th century, over a series of official appointments to other temples, and similar slights. The zasu of Enryaku-ji in 970 formed the first permanent standing army to be recruited by a religious body. Mii-dera can be assumed to have established one very soon afterwards. In 989, a former abbot of Mii-dera by the name of Yokei was to become abbot of Enryaku-ji; but none of the monks of Enryaku-ji would perform services under his