This Palace was made into a real temple by Emperor Kameyama himself and it became the Nanzen-ji, a high ranking temple among Five Great zen Temples of Kyoto in 1291.
なお、この離宮は亀山天皇自身が寺院化し、正応4年（1291年）に京都五山の上位南禅寺となった。