The Longfeng Ancestral Temple was built in the 9th year of Xuande in the Ming Dynasty (1434), that is, 85 years after the death of Tan Gongxian. It is the "cave house of immortals". It should have been called "Tan Gong Ancestral Temple", but because it was originally "Buddhism and Taoism integrated" (Tan Gong and Guanyin are in the same temple), it has always been called "Longfeng Ancestral Temple". This temple is built on the mountainside of Jiulong Peak. It faces 21 degrees from south to north and east, with its head resting on Jianbi Peak. There are slightly raised mountain ridges on both sides. There is a clear spring flowing down on the right side and a pool of clear water in the abdomen. It faces the flat and fertile "Tam Gong Cave". , Shuangpi River and Xizhi River can be vaguely seen in the distance, so it is called the "Feng Shui Treasure Land". Standing in front of the temple and looking up, you can have a panoramic view of the infinite scenery.
According to the "Inscription of the Addition of the Stele of Tan Gong'an on Jiulong Peak", "before the Qianlong Emperor (1739)... an additional temple was built, the upper hall was dedicated to Guanyin, and the real person (Tan Gong) was enshrined in the main hall." That is, "immortals and Buddhas share the same nunnery". From mid-autumn of the Guiwei year of Daoguang to winter of the Jiashen year (1823-1824), "the Immortal Buddha was divided into two nunneries" and "the Guanyin nunnery was built on the left side of the mountain, called Longtong Temple".