the mosque was constructed during the hongwu reign of the ming dynasty, with further additions during the qing dynasty. previous religious complexes (tanmingsi and huihui wanshansi) are known to have stood on the same site, dating to as early as the tang dynasty.