China was civilized way before the rest of the world, probably 11.000 years ago, in contrast to the 2,000 years of the western world. The oldest dynasty that we have certain knowledge of was the Xia dynasty.
Around 2,000 BCE, about 4,000 years ago. this dynasty was said to be founded by the best engineer from the Lungshan people. They settled along the Huang He River a thousand years earlier.
Until recently, it was thought that the Xin dynasty was purely mythological, but archaeological finds have established the existence of the following dynasty, the Shang, so it is hoped that more explorations will discover signs of the Xia.
The Qin dynasty is ancient, but others, previously thought to be mythical, existed before. The Shang dynasty 1500 BCE has been evidenced thanks to oracle bones uncovered in 1899. Before this dynasty the Xia dynasty probably existed but no evidence has been found for this so far.
Even before the Xia there is oral history discussing the 3 Sovereigns and 5 Emperors period nearly 3000 BCE. Whether this was a set of dynasties is really not known at all. The well known Dynasties in northern China succeeded one another from 907 AD to 960 AD.
The Later Liang Dynasty, Later Tang Dynasty, Later Jin Dynasty, Later Han Dynasty, and Later Zhou Dynasty. But these are not all the dynasties in China.