The short answer
The religion of the Shang dynasty centered on three groups of powers: a high power called Di (often rendered Shangdi in later sources), a range of nature spirits, and above all the spirits of the royal ancestors. Most of what we know comes from inscriptions on animal bones and turtle shells, so the picture is detailed in some respects and thin in others.
How we know about Shang religion
The Shang dynasty is traditionally dated to roughly the 16th to 11th centuries BCE, with the best evidence coming from its later capital near modern Anyang. There, archaeologists found thousands of “oracle bones”: ox shoulder blades and turtle plastrons used in divination. Kings or their diviners put questions to the spirits, applied heat to the bone until it cracked, read the cracks, and often carved the question and sometimes the outcome into the surface.
These inscriptions are the earliest substantial body of Chinese writing. They deal mostly with royal concerns: harvests, weather, military campaigns, illness, childbirth, hunting and the correct timing of rituals. Bronze vessels used in offerings add further evidence, though their inscriptions are usually short.
Di: the high power
Oracle inscriptions mention a power called Di (帝). Di appears to have influenced weather, harvests, the fortunes of the city and the success of military ventures. Scholars debate how to describe this figure. Di does not seem to have received regular sacrifices in the way ancestors did, and some researchers see Di as a remote supreme power, while others are more cautious about calling it a “god” in a later sense.
In later periods the term Shangdi (上帝, “High Lord” or “Lord on High”) was used for a supreme deity, and the concept of Tian (Heaven) became prominent under the following Zhou dynasty. How closely Shang Di matches these later ideas is uncertain. If you are curious about the character 上 and the word “shang” itself, see our explainer on what “shang” means in Chinese.
Royal ancestors
The most active religious practice in the Shang record is the veneration of ancestors. Deceased kings and their consorts were given temple names, often using the ten “heavenly stems” (such as Jia, Yi, Ding), and each was offered rituals on a schedule tied to those stems. The living king asked ancestors for guidance and protection and feared their displeasure, which could be blamed for toothaches, bad dreams or military setbacks.
Ancestors were seen as intermediaries. They could, in some cases, appeal to Di on behalf of the living, which helps explain why offerings were directed at them far more often than at the high power.
Nature spirits
The Shang also made offerings to spirits of natural features. Inscriptions mention powers associated with rivers (including the Yellow River), mountains, the earth or soil, wind, and rain. Because farming and the weather were so important, requests for rain and good harvests are among the most common divination topics. Some of these figures may be the ancestors of later folk deities, but the links are hard to prove.
Offerings and sacrifice
Offerings included millet wine, grain, and animals such as cattle, sheep and pigs. Excavations at Shang royal sites also show human sacrifice, including at large tombs, and the inscriptions mention it as well. Historians continue to discuss the scale and purposes, so it is best to treat any specific numbers with caution.
The king’s role
The king acted as the chief ritual officer. Divination and sacrifice helped legitimize his authority, linking political power to the spirit world. This idea of a ruler connected to higher powers continued in later Chinese dynasties, including the Zhou notion that Heaven grants and withdraws a ruler’s mandate.
What carried forward
Several features of Shang religion remained visible in later Chinese practice: ancestor veneration, ritual offerings in bronze vessels, divination and the idea that the cosmos responds to correct ritual. Many of the better-known figures people think of today, such as the Jade Emperor, belong to later periods. For a broader look at how these figures developed, see our article on famous gods in Chinese mythology and their names, and for the long arc of belief, the question of what the oldest known religion in China is.
Limits of the evidence
Oracle bones were written by and for the royal court, so they say little about what ordinary people believed. Many inscriptions are fragmentary, and interpretations of individual characters differ. Dates for the early Shang remain debated, and writing about “Shang gods” always involves some reconstruction. The summary above reflects the broad consensus, but details may shift as new finds appear.