Here is one of the most surprising facts about Ninna temple. Most of its buildings burned during the Onin War, which raged from 1467 to 1477. Rebuilding came in the Kan'ei and Shoho eras, between 1624 and 1648. In 1634, the twenty-first head of the temple, Prince Kakushin, asked the shogun Tokugawa Iemitsu, who was visiting Kyoto, to help restore the temple. Iemitsu agreed, and the shogunate's backing made the rebuilding possible. The result was a kind of recycling on an imperial scale. When the imperial palace in Kyoto was rebuilt in the Kan'ei years, some of its old buildings were granted to the temple and moved here. The Golden Hall, a National Treasure, is the former Shishinden, the main ceremonial hall of the palace, built in 1613. It is the oldest surviving Shishinden anywhere. When it became a Buddhist hall, the roof was changed from cypress bark to tile, but you can still see palace touches, such as lattice shutters that lift upward and gold decorative metal fittings. Inside, the principal image is Amida Nyorai. The Founder's Hall, an Important Cultural Property, was built between 1641 and 1645 using timber from the palace's former Seiryoden hall. It enshrines images of Kobo Daishi, the founder of the Shingon school, along with Emperor Uda and the second head of the temple, Prince Shoshin.