Some of the thousands of life-size Terracotta Warriors of the Qin Dynasty, c. 210 BCE
According to Chinese tradition, the first dynasty was the Xia, which emerged around 2100 BCE. The dynasty was considered mythical by historians until scientific excavations found early Bronze Age sites at Erlitou, Henan in 1959. It remains unclear whether these sites are the remains of the Xia Dynasty or of another culture from the same period. The succeeding Shang dynasty is the earliest to be confirmed by contemporary records. The Shang ruled the plain of the Yellow River in eastern China from the 17th to the 11th century BCE. Their oracle bone script (from c. 1500 BCE) represents the oldest form of Chinese writing yet found, and is a direct ancestor of modern Chinese characters. The Shang were conquered by the Zhou, who ruled between the 11th and 5th centuries BCE, though centralized authority was slowly eroded by feudal warlords. Many independent states eventually emerged from the weakened Zhou state and continually waged war with each other in the 300-year Spring and Autumn Period, only occasionally deferring to the Zhou king. By the time of the Warring States period of the 5th–3rd centuries BCE, there were seven powerful sovereign states in what is now China, each with its own king, ministry and army.
(source)