The Niujie Mosque, the largest of all the mosques in Beijing, was first built in 996 during the Liao Dynasty (916-1125) [REF].
Muslim eunuchs contributed money in 1496 to repairing Niujie Mosque [REF].