After the 1788 fire destroyed the Imperial Palace, the temple became a temporary palace for the retired Empress Go-Sakuramachi. Its Kobun-tei pavilion served as her study and later became a teahouse.