They even went as far as to kill the young man who had brought the food sent by Tang to farmhands hired by some Ge nobles, and stole the food. This triggered a battle between the two tribes, in which the Ge was defeated. Tang took this opportunity to seize a number of nearby tribes. Tang's power gradually strengthened with these moves. However, the insensible, decadent Jie did not take note of Tang's ambitions.
Tang thought the time was ripe for overthrowing the Xia Dynasty, since many tribes, no longer able to bear the cruelty of the Xia, had seceded from the dynasty. Tang decided to launch a massive attack. He first imbued the soldiers with a desire to topple the Xia Dynasty by appealing to the aspirations of the heavens. As a result, all the soldiers fought heroically. At a decisive battle in Mingdi, Jie's troops suffered a major defeat. Jie fled to Nanchao (southwest of today's Chaoxian County, Anhui Province), where he was captured by Tang's troops. He was exiled there until his death.
After ousting Jie, Tang continued to eradicate the remaining forces of the Xia Dynasty. Around 1600 BC, Tang officially founded the Shang Dynasty (c. early 17th_llth century BC), the second slave regime in Chinese history.
* Famous Minster YiYin
Yi Yin was once a slave. As he was good at cooking, he took the chance of serving food to the King Shang to present his proposal how to overthrow the Xia Dynasty and build a new country. Later, he was appointed as the "Yin," namely the Right Prime Minister. In the early stage of the Shang Dynasty, he instituted a series of rites and regulations, hence establishing a stable and prosperous country. After his death, the third emperor of the Shang Dynasty Woding held a stately funeral only for the emperors for him and mourned him for three years to praise his contributions to the Shang Dynasty.