The great mosque was initially built in 628, then restored during the Ming and Qing dynasty (14th century onwards). The great mosque was initially built in 628, then restored during the Ming and Qing dynasty (14th century onwards). Huayan TempleYungang Grottoes Labels