The temple is a grotto temple, set on the cliff of Douji Mountain in Qinling Mountain, across the Jialing River and Fengzhou Ancient City. The ancient temple was built in the West Han Dynasty and flourished in the Sui and Tang Dynasties. It has a history of more than 1,400 years. The famous temple is related to two celebrities. First, Zhang Guolao, one of the eight immortals of Taoism, once lived in seclusion here, and the temple has retained the grotto Guolao cave of Zhang Guo Xiuxian; later in the Tang Dynasty, Tang Xuanzong used to pray here to eliminate the disaster when he avoided the chaos of the history of disaster, which made the ancient grotto temple in the depths of the Qinling Mountains famous.