In the beginning, there was nothing and the universe was in a nondual, featureless, formless primordial state. This primordial state coalesced into a cosmic egg for about 18,000 years. Within it, the perfectly opposed principles of Yin and Yang became balanced, and Pangu emerged (or woke up) from the egg. Pangu inside the cosmic egg symbolizes Taiji. Pangu is usually depicted as a primitive, hairy giant who has horns on his head and wears fur. Pangu began creating the world: he separated Yin from Yang with a swing of his giant axe, creating the Earth (murky Yin) and the Sky (clear Yang). To keep them separated, Pangu stood between them and pushed up the Sky. With each day, the sky grew ten feet (3 meters) higher, the Earth ten feet thicker, and Pangu ten feet taller. This task took yet another 18,000 years. In some versions of the story, Pangu is aided in this task by the four most prominent beasts, namely the Turtle, the Qilin, the Phoenix, and the Dragon.
After the 18,000 years had elapsed, Pangu died. His breath became the wind, mist and clouds; his voice, thunder; his left eye, the Sun; his right eye, the Moon; his head, the mountains and extremes of the world; his blood, rivers; his muscles, fertile land; his facial hair, the stars and Milky Way; his fur, bushes and forests; his bones, valuable minerals; his bone marrow, precious jewels; his sweat, rain; and the fleas on his fur carried by the wind became animals.
Three main views describe the origin of the Pangu myth. The first is that the story is indigenous and was developed or transmitted through time to Xu Sheng. Senior Scholar Wei Juxian states that the Pangu story is derived from stories during the Western Zhou Dynasty. He cites the story of Zhong (?) and Li (?) in the "Chuyu" section of the ancient classics Guoyu. In it, King Zhao of Chu asked Guanshefu () a question: "What did the ancient classic "Zhou Shu" mean by the sentence that Zhong and Li caused the heaven and earth to disconnect from each other?" The "Zhou Shu" sentence he refers to is about an earlier person, Luu Xing, who converses with King Mu of Zhou. King Mu's reign is much earlier and dates to about 1001 to 946 BC. In their conversation, they discuss a "disconnection" between heaven and earth.
This is how Professor Qin Naichang, head of the Guangxi Institute for Nationality Studies,  reconstructs the true creation myth preceding the myth of Pangu. Note that it is not actually a creation myth:
A brother and his sister became the only survivors of the prehistoric Deluge by crouching in a gourd that floated on water. The two got married afterwards, and a mass of flesh in the shape of a whetstone was born. They chopped it and the pieces turned into large crowds of people, who began to reproduce again. The couple were named 'Pan' and 'Gou' in the Zhuang ethnic language, which stand for whetstone and gourd respectively.
Paul Carus writes this:
P'an-Ku: The basic idea of the yih philosophy was so convincing that it almost obliterated the Taoist cosmology of P'an-Ku who is said to have chiseled the world out of the rocks of eternity. Though the legend is not held in high honor by the literati, it contains some features of interest which have not as yet been pointed out and deserve at least an incidental comment.
P'an-Ku is written in two ways: one means in literal translations, "basin ancient", the other "basin solid". Both are homophones, i.e., they are pronounced the same way; and the former may be preferred as the original and correct spelling. Obviously the name means "aboriginal abyss," or in the terser German, Urgrund, and we have reason to believe it to be a translation of the Babylonian Tiamat, "the Deep."
The Chinese legend tells us that P'an-Ku's bones changed to rocks; his flesh to earth; his marrow, teeth and nails to metals; his hair to herbs and trees; his veins to rivers; his breath to wind; and his four limbs became pillars marking the four corners of the world, -- which is a Chinese version not only of the Norse myth of the Giant Ymir, but also of the Babylonian story of Tiamat.
Illustrations of P'an-Ku represent him in the company of supernatural animals that symbolize old age or immortality, viz., the tortoise and the crane; sometimes also the dragon, the emblem of power, and the phoenix, the emblem of bliss.
When the earth had thus been shaped from the body of P'an-Ku, we are told that three great rivers successively governed the world: first the celestial, then the terrestrial, and finally the human sovereign. They were followed by Yung-Ch'eng and Sui-Jen (i.e., fire-man) the later being the Chinese Prometheus, who brought the fire down from heaven and taught man its various uses.
The Prometheus myth is not indigenous to Greece, where it received the artistically classical form under which it is best known to us. The name, which by an ingenious afterthought is explained as "the fore thinker," is originally the Sanskrit pramantha and means "twirler" or "fire-stick," being the rod of hard wood which produced fire by rapid rotation in a piece of soft wood.
We cannot deny that the myth must have been known also in Mesopotamia, the main center of civilization between India and Greece, and it becomes probable that the figure Sui-Jen has been derived from the same prototype as the Greek Prometheus.
The missionary and translator James Legge discusses Pangu:
P'an-ku is spoken of by the common people as "the first man, who opened up heaven and earth." It has been said to me in "pidgin" English that "he is all the same your Adam"; and in Taoist picture books I have seen him as a shaggy, dwarfish, Hercules, developing from a bear rather than an ape, and wielding an immense hammer and chisel with which he is breaking the chaotic rocks.
The Pangu myth appears to have been preceded in ancient Chinese literature by the existence of Shangdi or Taiyi (of the Taiyi Shengshui). Other Chinese myths, such as those of Nuwa and the Jade Emperor, try to explain how people were created and do not necessarily explain the creation of the world. There are many variations of these myths.
The daughter of the Dragon King and Pangu had a son named Xinheng (). When Xinheng disrespected his mother, she returned to heaven and never came down, despite the repeated pleas of her husband and son. Pangu was forced to remarry and eventually died on the sixth day of the sixth month of the lunar calendar.
Xinheng's stepmother treated him badly and almost killed him. When Xinheng threatened to destroy her rice harvest, she realized her mistake. She made peace with him, and they went on to pay their respects to Pangu annually on the sixth day of the sixth month of the lunar calendar. This day became an important traditional Buyei holiday for ancestral worship.
This legend of creation is one of the main characteristics that distinguishes the Buyei from the Zhuang.
The Pangu King Temple built in 1809 is located in Guangdong Province, northwest Huadu District (west of G106 / north of S118), north of Shiling Town at the foot of the Pangu King Mountain. The Huadu District is located north of Guangzhou to the west of the Baiyun International Airport.