The temple was built 500 years ago. During the Chenghua period of the Ming Dynasty, officers and soldiers came to Guangdong to station Tuntian and built a mosque for religious life. The temple stated that "this mosque is only open to Chinese and foreign Muslims, and is not open to individuals in society for the time being."