The Niujie Mosque is the oldest mosque in Beijing, China. It was first built in 996 during the Liao Dynasty and was reconstructed as well as enlarged under the Kangxi Emperor (r. 1661-1722) of the Qing Dynasty.
The Mosque is located in the Niujie area of Beijing's Xicheng District, the spiritual centre for the 10,000 Muslims living in the vicinity and it is the biggest and oldest one in Beijing. It was within the Xuanwu District before it merged into Xicheng in 2010. Niujie in Xicheng District, where the mosque is located, is the largest area inhabited by Muslims in Beijing.
The Niujie Mosque covers an area of approximately 10,000 square meters. The mosque reflects a mixture of Islamic and Han Chinese cultural and architectural influences. From the outside, its architecture shows traditional Chinese influence and the inside has blend of Islamic calligraphy and Chinese design. The main prayer hall is 600 square meters in area, and can hold more than 1,000 worshipers, while non-believers cannot enter it. The mosque, built out of timber, is home to some important cultural relics and tablets such as the upright tablet of an emperor's decree proclaimed in 1694 during the Qing Dynasty.