The Xia Dynasty was described in classic texts such as the Classic of History (Shujing), the Bamboo Annals, and the Records of the Grand Historian (Shiji) by Sima Qian. It has been documented that the tribe that founded the dynasty was the Huaxia, who were the ancestral people of the Han Chinese.
According to ancient Chinese texts, before the Xia Dynasty was established, battles were frequent between the Xia tribe and Chi You's tribe. The Xia tribe slowly developed around the time of Zhuanxu, one of the legendary Five Emperors.
The Records of the Grand Historian and the Classic of Rites say that Yu the Great is the grandson of Zhuanxu, but there are also other records, like Ban Gu, that say Yu is the fifth generation of Zhuanxu. Based on this, it is possible that the people of the Xia clan are descendants of Zhuanxu.
Gun, the father of Yu the Great, is the earliest recorded member of the Xia clan. When the Yellow River flooded, many tribes united together to control and stop the flooding. Gun was appointed by Yao to stop the flooding. He ordered the construction of large blockades to block the path of the water.
Yu was highly trusted by Shun, so Shun appointed him to finish his father’s work, which was to stop the flooding. Yu’s method was different from his father’s: he organized people from different tribes and ordered them to help him build canals in all the major rivers that were flooding and lead the water out to the sea.
Yu was dedicated to his work. People praised his perseverance and were inspired, so much so that other tribes joined in the work. Legend says that in the 13 years it took him to successfully complete the work to stop the floods, he never went back to his home village to stop and rest, even though he passed by his house three times.
Yu’s success in stopping the flooding increased agricultural production (since the floods were destructive). The Xia tribe’s power increased, and Yu became the leader of the surrounding tribes.
Soon afterwards Shun sent Yu to lead an army to suppress the Sanmiao tribe who continuously abused the border tribes. After defeating them, he exiled them south to the Han River area. This victory strengthened the Xia tribe’s power even more.
As Shun aged, he thought of a successor and relinquished the throne to Yu, whom he deemed worthy. Yu’s succession marks the start of the Xia Dynasty. As Yu neared death he passed the throne to his son, Qi, instead of passing it to the most capable candidate, thus setting the precedent for dynastic rule or the Hereditary System. The Xia Dynasty began a period of family or clan control.(wikipedia.org)