Nanzenji Temple (南禅寺), whose spacious grounds are located at the base of Kyoto's forested Higashiyama Mountains, is one of the most important Zen temples in all of Japan. It is the head temple of one of the schools within the Rinzai sect of Japanese Zen Buddhism and includes multiple sub temples that make the already large complex of temple buildings even larger. The history of Nanzenji dates back to the mid-13th century, when the Emperor Kameyama built his retirement villa at the temple's present location and later converted it into a Zen temple. After its founding, Nanzenji grew steadily, but its buildings were all destroyed during the civil wars of the late Muromachi Period (1333-1573). The oldest of the current buildings was built after that period. The temple is extremely attractive during the autumn season.