Menshen or door gods are divine guardians of doors and gates in Chinese folk religions, used to protect against evil influences or to encourage the entrance of positive ones. They began as the divine pair Shenshu ( ) and Yulü () under the Han, but the deified generals Qin Shubao () and Yuchi Gong () have been more popular since the Tang. In cases where a door god is affixed to a single door, Wei Zheng or Zhong Kui is commonly used. History The gates and doors of Chinese houses have long received special ritual attention. Sacrifices to a door spirit are recorded as early as the Book of Rites. By the Han, this spirit had become the two gods Shenshu and Yulü, whose names or images were painted into peachwood and attached to doors. When the Great Ancestor of the Tang ("Emperor Taizong") being plagued by nightmares, he ordered portraits of his generals Qin Shubao and Yuchi Gong to be affixed to gates. They eventually came to be considered divine protectors, replacing Shentu and Yulü and remaining the most common door gods to the present day. Qin and Yuchi, along with various other deified military leaders, make up a class of intended to ward off evil spirits and bad influences. A separate group of scholars make up a class of intended to attract blessings and good fortune. Some deities are also thought to have guardians who serve a similar role at their temples, such as Mazu's companions Qianliyan and Shunfeng'er. Legends The 10th chapter of the Chinese novel Journey to the West includes an account of the origin of door gods. In it, the Dragon King of the Jing River disguised himself as a human to outsmart the fortune teller Yuan Shoucheng. Since he was able to control the weather, he made a bet with Yuan about Chang'an's forecast for the next day. He was nonplussed, however, when he received an order from the Jade Emperor telling him to give the city precisely the weather Yuan had predicted. The Dragon King preferred to win the bet and disregarded the order, going to Yuan to gloat the next day. Yuan remained calm and revealed that he had known the Dragon King's identity all along. Moreover, since the dragon had been so arrogant as to disregard an order from the Jade Emperor, his doom would be short in coming. The dragon