Islam was introduced in China by the uncle of Prophet Muhammad (pbuh),Saad bin Abi Waqas during the reign of the Chinese Emperor Gaozong of the Tang dynasty in 651. Gaozong is known in the Islamic sources as Yung Wei. The emperor is known to be impressed by the teachings of Islam but he did not himself convert. However he did order the building of the first mosque in China. Additionally the Muslims were also allowed to proselytize in China.