There are quite a few accounts of Wenchang Wang; most depict him as a man by the name Zhang Yazi (), of a county in
Sichuan Province called
Zitong. A particular account cites him as a war hero, having died an honorable death in a rebellion against Emperor
Fú Jiān in 374. Other accounts of Wenchang Wang appear rather sporadically at different time periods; he has been given seventeen reincarnations over a period of 3,000 years. A notable account of an appearance of Wenchang Wang was as the Spirit of Zitong, during the suppression of a rebellion in
Chengdu, Sichuan, in 1000 A.D. A man allegedly climbed a ladder in midst of battle and declared that the Spirit of Zitong told him the "town [of rebels] would fall on the twentieth day of the ninth moon." The town fell on the day indicated, and the general in charge of repressing the rebellion had the temple repaired. In addition to being a respected warrior, Wenchang Wang was well respected as a model for filiality. The
Book of Emperor Zi Tong records: "Wenchang had a mature mind at birth. His mother breastfed him even though she was perilously ill and malnourished. In the middle of the night, Wenchang cut flesh from his own thighs and fed it to his mother. She was then cured of her illness." Wenchang Wang also appears in other texts, where he is praised for other noble virtues. The book
Wenchang Emperor and the States He Stabilized states: "He descended into the mortal world seventy-three times as a
shidafu" (a scholar-bureaucrat position in the emperor's government of feudal China). Wenchang was uncorrupted, upright and just, and never dealt out harsh punishments to the people. He allegedly helps people when they have hardships, saves those who are in trouble, has compassion for the lonely, forgives people's mistakes, and leaves peace and stability everywhere he goes. Because of this, the
Jade Emperor put him in charge of the elections of village leaders. Besides that, structures dedicated to the high god Wenchang and his subordinate Kuixing were a pervasive feature of cityscapes in late imperial China, as represented in local gazetteers. == Controversy ==