In 986, Emperor Kazan was tricked into abdicating and entering the priesthood by FUJIWARA no Kaneie and his son FUJIWARA no Michikane, and Imperial Prince Kanehito (Emperor Ichijo), Kaneie's grandchild from a daughter who married into another family, acceded to the Imperial throne.
寛和二年（986年）、花山天皇がこの寺で藤原兼家、藤原道兼父子の策略により出家させられ、兼家の外孫である懐仁親王（一条天皇）が帝位についた。