The Yellow Emperor (Huang Di 黃帝, occasionally written 皇帝 "August Ancestor") is the mythological ancestor of the Chinese people and one of the Five Emperors 五帝.
Chinese historians of the early 20th century believed that there was a certain Chinese tribe living in the region of River Ji 姬水 (around Qingdi 青地, Shaanxi) that venerated the Huang Di as their common ancestor (di 帝 is a deified ancestor). This is the so-called Qijia Culture 齊家文化. The people from this culture are believe to have regularly intermarried with the people of the Jiang River 姜水 valley (around modern Qishan 岐山 and Wugong 武功, Shaanxi, called the Hua people 華) that venerated the Yan Di 炎帝, the "Red Emperor", as their common ancestor. Descendants of the Huang Di people migrated to the southern part of modern Shanxi province, where they founded the Xia Culture 夏文化, from which the Xia dynasty 夏 (17th-15th cent. BCE) originated.
Another people or tribe that derived their origin from the Huang Di people were the Zhou 周 (11th cent.-221 BCE) that founded the dynasty with the same name, which can be seen in the surname of the rulers, which is Ji 姬.
So-called apocryphal texts from the Han period 漢 (206 BCE-220 CE) show that it is quite probable that the Yellow Emperor was originally a deity controlling lightning and thunder and was represented in the shape of the constellation of the Big Dipper. As a such, he also represented the centre of Heaven and the world and controlled all other directions and the deities attributed to them. The latter were seen as an element of disturbance that the Yellow Emperor had to calm down.
The ancient writings Guoyu 國語, Shiben 世本 and Da Dai Liji 大戴禮記 say that Huang Di was the son of Shao Dian 少典 and Fu Bao 附寳. The history book Shiji 史記 says, his family name was Gongsun 公孫, his name Xuanyuan 軒轅 and the name of his state Youxiong 有熊 (or Xiong 熊).
Other tribal names of him are Lord Jinyun 縉云氏 or Dihong 帝鴻氏. The historian Cui Shu 崔述 (1740-1816) pointed at the fact that the family name Gongsun did not exist in highest antiquity but is of a younger date, so that this statement can not be true. Xuanyuan is likely to be a place name (identified with modern Xinzheng 新鄭, Henan), probably his residence, but is by the Han period commentator Wang Yi 王逸 (89-158 CE) explained as the result of his invention of cart and wagon (compare the characters, written with the radical 車 "cart"). The name Youxiong does not appear in the oldest lists like that in the various Shiben editions. Any statements about Huang Di thus have to be seen as a part of mythology rather than as historical facts.
In most versions of the genealogical Shiben books, there are lists of inventors (zuo 作), a large part of which are said to have lived during the age of the Yellow Emperor. Such cultural inventions are the boring of wells, the mortar, bow and arrow, oxen as draught animals and horses as riding animals, carts and ships, clothing, caps and banners, fans, shoes, the calendar, mathematics, astrology, the pitch pipes, musical instruments, medicine, or the Chinese script. Of course, these inventions, too are part of a mythology, but all took place in a culturally advanced period of the neolithic age.
Mythological stories narrate the Yellow Emperor's battle with Chi You 蚩尤 (who was, according to a fragment of the Xinshu 新書 quoted in the Yishi 繹史, a half-brother of the Yellow Emperor) in Zhuolu 涿鹿 (close to modern Beijing), or his battle with the Hunzhou tribes 葷粥 (ancestors of the Xiongnu 匈奴) in the north, or the battle with the "Red Emperor" Chi Di 赤帝 (same as Yan Di) in Banquan 阪泉 (near modern Zhuolu, Hebei).
He is so the first in a series or cycle of victorious rulers that subdued vile and depraved kings. Later books like the Shanhaijing 山海經 mention the generals Ying Long 應龍 and Nü Ba 女魃 which attacked Chi You, but such a battle is also mentioned in older documents like the Yizhoushu 逸周書 and the Classic Shangshu 尚書, so that there must be some historical truth behind, probably a regular warfare (or one single battle) of the Xia people with tribes in the north, probably as a result of the northward migration of the Xia Chinese. Historians commenting on these stories bring forward that Banquan was likely the tribal name of Chi You, and not a place name. Others say that the river source Banquan and Mt. Zhuolu are located in the same area, so that the battle has been given different names by different authors or in different times.
With the growing cultural unity of the Chinese realm, the tribal background of the Yellow Emperor became less obvious, and all persons living in the Zhou empire accepted him as their mythological ancestor. The descendants of the Yellow Emperor became the forefathers of all Chinese, or at least their ruling houses. The earlier difference between the Huang Di and the Yan Di was blurred, and both became one single person, and the Xia and Hua peoples merged to one, the Hua-Xia people 華夏.
Traditional historians narrate that the Yellow Emperor, after defeating Chi You and the Red Emperor, established a kind of government and appointed rulers ("nobles") over the various regions of his empire (the "ten thousand states" wanguo 萬國). He adopted the title of "Son of Heaven" (tianzi 天子) as successor of Shen Nong 神農, the "Divine Husbandman". The Yellow Emperor thereupon established the "hundred state offices" (baiguan 百官), issued law canons and statutes (dianzhang 典章) and had for the first time built an imperial palace.
Huang Di had four consorts, namely Lei Zu 嫘祖, Nü Jie 女節, Lady Tongyu 彤魚氏女 and Mo Mu 嫫母. He fathered 25 children or sons, 14 of which were bestowed 12 family names (Ji 姬, You 酉, Qi 祁, Ji 己, Teng 滕, Qian 葴, Ren 任, Xun 荀, Xi 僖, Jie 佶, Huan 儇 and Yi 依).
The Yellow Emperor also belongs to the cultural heroes by the many inventions he made, like bronze tripods, boats and carts, and even the compass cart (zhinanche 指南車). His wife Lei Zu is the inventor of silk spinning, his minister Cang Jie 倉頡 invented the script, Xi He 羲和 (two persons, Xi and He?), Chang Yi 常儀, Sou Qu 臾區 astonomy and astrology, Ling Lun 伶倫 (also written 泠綸) the musical pitch pipes, Da Rao 大擾 the sexagenary cycle of the calendar, and Li Shou 隸首 mathematics. The Yellow Emperor ruled for one hundred years. His tomb mound Huangling 黄陵 is to be found in Huangling 黄陵, Shaanxi.
The book Shanhaijing says that the Yellow Emperor consumed a jade paste (yugao 玉膏) making him immortal (?). According to the history book Shiji, he collected ores and cast a tripod, under which a dragon appeared. The Yellow Emperor then mounted the animal, and so the dragon became a symbol of imperial power.
The Yellow Emperor is sometimes referred to as Tai Di 太帝 "Great Emperor" or Tian Di 天帝 "Celestial Emperor" (see Heaven), or Shang Di 上帝 "Supreme Emperor".