The temple was built in the 45th year of Ming Emperor Wanli's reign (1617) on the site of an official printing workshop for Buddhist sutras in Chinese. It was rebuilt in the 21st year of Qianlong's reign (1756). Inside the temple erects the poem tablet commissioned by the Qianlong Emperor's order in the 21st year of his reign (1756).