Originally built as a detached palace in 1264 by the Emperor Kameyama, it was later dedicated as a Zen temple in 1291.

It was destroyed by fire in 1393, 1447, and 1467. It was rebuilt in 1597 and expanded throughout the Edo period.

Other Kyoto Attractions