The mosque was constructed during the reign of Kangxi Emperor of Qing Dynasty due to the shear population of Hui people in the region. During the Cultural Revolution, the mosque was turned into a factory and the prayer room became a workshop. In 1982, the factory moved out and the building functioned as a mosque again.