Nanzen-ji (南禅寺), or Zuiryusan Nanzen-ji, formerly Zenrin-ji (禅林寺), is a Zen Buddhist temple in Kyoto, Japan. Emperor Kameyama established it in 1291 on the site of his previous detached palace. It is also the headquarters of the Nanzen-ji branch of Rinzai Zen.