A Kouyan-Shingon temple built in 824 by Kuukai for Emperor Junna with Amida Nyorai as its principle buddha (the first one in Japan to have crystal eyes). The bell tower of the temple, built in the Heian Period (794-1185) is also Japan's oldest and the only structure built by Kuukai from that time period.
The garden of the temple is located just through the bell tower gate, and on the left is the main temple building. The ceiling of the main temple is known as the "bloody ceiling". When Ryuuouzan Castle behind the temple was attacked by Matsunaga Hisahide during the Sengoku Period, there was also fighting within the temple. It's said that the blood of soldiers flowed from the open corridor into the main temple. The floorboards were later used as ceiling boards, and the bloody footprints from that time can still be clearly seen.