Meanwhile, by this point, Emperor Daizong, who had previously favored Taoism, had begun to become a devout Buddhist due to the influences of his chancellors Yuan Zai, Wang Jin, and Du Hongjian. Yuan, in particular, advocated the belief that it was by the blessings of the Buddha that Tang was able to survive the Anshi Rebellion and Pugu's rebellion. As a result, Emperor Daizong's policies began to be heavily influenced by Buddhist principles, and he honored the Buddhist monk Bukong with great honors, including creating him a duke. The temples at Chang'an became very wealthy, and Emperor Daizong further ordered that monks and nuns not be subject to physical punishments. With the emperor and the chancellors all devout Buddhists, Buddhism became the leading influence in the empire. (Traditional historians, such as the Song Dynasty historian Sima Guang, ascribed the poor governance and justice system during Emperor Daizong's time to this.)