 Muslim eunuchs contributed money in 1496 to repairing Niujie Mosque.It is unknown who really was behind the anti-pig slaughter edict.At the end of the Ming dynasty, there were about 70,000 eunuchs (宦官 "huànguān", or 太監 "tàijiàn") employed by the emperor, with some serving inside the imperial palace.