An ancient Shinto shrine had long existed on Mount Hiei, an auspicious site outside Kyoto. When a Buddhist monastery was established there at the end of the eighth century, the monks continued to respect traditional Shinto practices.