Ancestor worship has been a dominant religious form in ancient as well as modern China. It has shaped thought and behaviour for millennia, and has been used by élites as propaganda legitimizing their political positions. Ancestors can be created and modified, so the nature of the ancestral cult has changed through time. Using archaeological data from China, this article first enables an exploration of the earliest manifestations and the development of ancestor-worship ritual in the Neolithic period; secondly, demonstrates that lineage/tribal ancestors became state deities in the Shang dynasty (c. 1600-1100 BC); and, thirdly, investigates the process in modern history by which a legendary sage, the Yellow Emperor, was first transformed into the progenitor of the Han Chinese, and then into the common ancestor of all Chinese people.