Also known as Mii-dera. The head temple of the Temple ( Jimon) branch of the Tendai school, located in Otsu in Shiga Prefecture, Japan. According to the temple's tradition, it was built in 686 by Otomo no Yotamaro, a son of Prince Otomo, but it is widely thought that a local lord called Otomo built it as a family temple in the late Nara period (710-794). Chisho, later the fifth chief priest of Enryaku-ji, the head temple of the Tendai school on Mount Hiei, restored Onjo-ji in 859, and it became affiliated with Enryaku-ji temple. Later friction arose between priests in the lineage of Jikaku, the third chief priest of Enryaku-ji, and those in Chisho's lineage. In 993, one hundred years after Chisho's death, his followers left Mount Hiei and moved to Onjo-ji temple, where they declared their independence from Enryaku-ji and established the Temple school.