Emperor Huizong of Song (r. 1100–1126) was heavily influenced by a Taoist named Lin Lingsu. Huizong came to consider himself the head of Taoism and the incarnation of the son of a high god. Huizong considered Taoism and Confucianism to share a common origin and sought to synthesize the two to accommodate both Confucian classics and Taoist revelations. He set up charity clinics at Taoist temples in 1119 and named them using a combination of Taoist and Confucian terminology: "Humane Aid Pavilions" - Humane from Confucianism; Aid from Taoism. At the same time Huizong renamed Buddhist monks to deshi to correspond with the Taoist daoshi, in effect subordinating Buddhism to Taoism. He opposed heterodox practices such as shamanism and is credited with destroying 1,138 temples in 1111.
