秦琼
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. The Great Ancestor of the Tang ("Emperor Taizong") 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.