Nanzen-ji or Zuiryusan Nanzen-ji, formerly Zenrin-ji, is a Zen Buddhist temple. Nanzen-ji was founded in the middle Heian period. Nanzen-ji is not itself considered one of the "five great Zen temples of Kyoto"; however, it does play an important role in the "Five Mountain System" which was modified from Chinese roots. Nanzen-ji’s main attraction are the rock gardens and fusuma paintings in the Seiryo-den, originally an imperial palace building that was donated to the temple in 1611, and that now serves as the abbot’s quarters. Another section of the abbot’s quarters was originally part of the Fushimi Castle, built by the warlord and national unifier Toyotomi Hideyoshi (1536-1598). Nanzen-ji also has a number of notable subtemples, among which Nanzen-in, Tenju-an, and Konchi-in have especially fine Zen gardens.