He ordered that a Buddhist temple, a Confucian temple, and two mosques be built in the city.[15] Advocating Islam, Christianity, Buddhism, Daoism and Confucianism was part of the Mongolian religious policy.[16] The Confucian temple that Sayyid Ajall built in 1274, which also doubled as a school, was the first Confucian temple ever to be built in Yunnan.[17]