What a City God does for one town
If you asked worshippers in an old county town who looked after their home, they might have pointed to the City God temple. Its guardian, Chenghuang, watched over the town and the district around it. People prayed for safety in times of danger. Someone unable to get a fair hearing could tell the god what had happened, trusting that a wrong concealed from a human magistrate was still known to him. In many local traditions his care extended to the dead as well.
Asking for the City God's name sounds simple until someone asks which city you mean. Think of asking for the name of a mayor. The title tells you what office the person holds, but you still need a place. Shanghai has its own answer to that question. So does the world of a ghost story in which an ailing scholar unexpectedly gets the job.
The wall and ditch behind the name Chenghuang
Cheng referred to the city wall. Huang was the ditch dug around it. The early Chinese dictionary Shuowen Jiezi draws a fine distinction between a dry ditch, a huang, and one filled with water, a chi. Together the wall and ditch protected the people who lived inside. Their name came to be used for the guardian to whom those people prayed.
A siege recorded in the Book of Northern Qi gives that old meaning a human face. The commander Murong Yan was holding Yingcheng. The town was surrounded and river traffic was blocked. Inside stood a City God shrine to which local people already took their prayers. Murong Yan and his soldiers prayed there too. In the chronicler's telling, wind and waves broke through the obstruction. For the men inside the walls, getting their city through the siege was reason enough to ask the god for help.
Why a temple could look like a magistrate's hall
In 1369, early in the Ming dynasty, the imperial court assigned noble titles to City Gods. The capital's deity and a few others received royal titles. Elsewhere the usual ranks were duke for a prefecture, marquis for a subprefecture and earl for a county. A year later the court withdrew those titles and instructed communities to use the place name. A tablet naming the City God of a particular county told worshippers exactly whose protection they were seeking.
One order in the History of Ming is particularly easy to picture. A City God temple's hall was to take its dimensions from the local government hall. The same court called for a wooden spirit tablet. Many temples today have a robed figure instead, often with attendants at either side. A visitor facing that familiar arrangement can recognize the setting where a magistrate would hear a case. It makes sense to bring a grievance there.
Chenghuang, the Land God and Yama
At a neighborhood or village shrine, the familiar guardian is often Tudigong, the Land God. People might pray to him for their crops or their neighbors' well-being. The City God's responsibility takes in a whole town and its surrounding district. A family could visit its nearby Land God shrine throughout the year and still turn out for the procession of the god who watched over the whole county.
Yama, or Yanluo Wang, is best known as a judge of the dead. In Chinese pictures of the Ten Kings he can be seen presiding over the fifth court. A City God can investigate wrongdoing too, but his connection to the people of one place is unusually close. Local stories differ about who first receives a new arrival in the world of the dead.
Whom people worship in Shanghai's City God Temple
People in Shanghai have a phrase for the temple in their old town, “one temple, two City Gods.” In the front hall worshippers meet Huo Guang, a statesman of the Han dynasty. Farther inside is Qin Yubo, who was named City God of Shanghai in the early Ming. How did men who lived more than a thousand years apart come to share a temple?
Huo Guang already had a shrine here. During the Ming emperor Yongle’s reign, the local magistrate, Zhang Shouyue, converted it into a City God temple dedicated to Qin Yubo. Worship of Huo Guang continued. A walk from the front hall to the rear still follows the order in which the two men found a place in the religious life of the town.
The story of the scholar who sat the City God's exam
In Pu Songling's Strange Tales from a Chinese Studio, the scholar Song Tao is ill in bed when a clerk arrives with a horse and orders him to an examination. Song is puzzled. The official who examines students has not even arrived. After riding through unfamiliar country, he finds more than ten officials seated in a hall. He recognizes just one, the deified warrior Guan Yu. Another candidate is already waiting at a desk under the eaves.
The essay question turns on intention. Song argues that a person can do a good deed with an eye to a reward, while someone who causes harm may never have intended it. His answer pleases the examiners. There is a City God post to fill, they tell him, and he is the man for it. Only then does he realize what examination he has sat.
Why Song Tao asked for nine years of leave
Song's first thought is of his seventy-year-old mother. Who will support her if he leaves now? A clerk consults the register of lifespans. She has nine years left. Guan Yu suggests that the other candidate, a scholar named Zhang, hold the official seal until Song can take over. Song goes home. His mother hears a groan from his coffin and helps him out. To his family he has been dead for three days.
Nine years later his mother dies. Song arranges her burial, washes, retires to his room and dies in turn. Pu saves one last glimpse of him for the family of his wife. He appears at their home with horses and an imposing retinue, bows, and leaves. They send to his village for news and learn that he is already dead. The office can now claim the son who was given time to care for his mother.
Why Hsinchu's City God stops on North Gate Street
On the fifteenth day of the seventh lunar month, Hsinchu's City God leaves the temple for a procession through the streets. It is part of the city's Zhongyuan festival, when people make offerings for the dead. The procession gives particular care to spirits who have no family to make offerings for them. For one day the whole town can see its guardian on the move.
On North Gate Street the procession pauses at the Zheng family's ancestral temple, where descendants offer tea. Local accounts remember that Zheng Yongxi helped restore the City God temple in the nineteenth century. The stop repays his family's kindness. Another town might hold a procession for its own Chenghuang, but this particular cup of tea belongs to Hsinchu.
Sources and reading notes
Dictionary of Chinese Character Variants. Dictionary · Ministry of Education · Entry for huang, including the Shuowen Jiezi definition. The early dictionary distinguishes a water-filled moat from a dry ditch.
Book of Northern Qi, Volume 20. Classical text · Li Baiyao · Biography of Murong Yan, the siege of Yingcheng. During the siege, the commander and his men pray at a shrine already known to the inhabitants.
History of Ming, Volume 49. Classical text · Zhang Tingyu and others · Treatise on Rites, Part Three, rites for City Gods. The account sets out the noble titles, their withdrawal and the rules for the size of each temple hall.
Dictionary of Taiwanese Folk Objects, City God. museum-record · Taiwan Historica · Entry 1208. The dictionary describes a local protector who keeps order among both the living and the dead.
King Yanluo of the Fifth Court. museum-record · National Museum of History · Collection no. 73-00155. The painting identifies Yanluo as the judge presiding over the fifth of the ten courts.
Shanghai City God Temple, Municipal Heritage Site. heritage-register · Meet in Shanghai · History of the shrine and temple. The municipal guide traces the temple dedicated to Qin Yubo back to an earlier shrine for Huo Guang.
Why Did Huo Guang Become a Guardian of the Shanghai Region?. historical-record · Yu Siyan · Shanghai Civil Affairs Bureau, 19 March 2024 · The halls of Huo Guang and Qin Yubo. The account locates Huo Guang in the front hall and Qin Yubo in the rear hall.
Strange Tales from a Chinese Studio, The City God Examination. Classical text · Pu Songling · Song Tao, the examination and Zhang's temporary appointment. Song Tao takes the examination, asks for leave to care for his mother and learns who will hold the seal in his absence.
Religious Culture Map, Hsinchu's Zhongyuan City God Festival. heritage-register · Ministry of the Interior · The procession and tea at the Zheng ancestral temple. On the fifteenth day of the seventh lunar month the procession calls at the Zheng family temple on North Gate Street.
Restoration of Statues of Deities in Wenao Chenghuang Temple, Magong City, Penghu County. research-paper · Ching-tai Wu and colleagues · Journal of Cultural Heritage Conservation, issue 44, 2018 · Main altar statue of Chenghuang, Figure 1. The conservators describe the statue’s winged cap, long beard, wide sleeves and the tablet held before its chest.