This temple is in Naksan where the Buddhist Goddess is said to reside. Ui-sang Daesa built the temple in 676 during the unified Silla era. After studying in Tang Dynasty China, Ui-sang encountered the Buddhist Goddess in prayer, and she pointed out where Mt. Naksan should be built.