The history of China spans several millennia across a wide geographical area. Each region now considered part of the Chinese world has experienced periods of unity, fracture, prosperity, and strife. Chinese civilization was traditionally thought to have first emerged in the Yellow River or Huang He valley, which along with the Yangtze basin constitutes the geographic core of the Chinese cultural sphere. However, current views have considered the origin to be a simultaneous duality of both the Yellow River and the Yangtze. China maintains a rich diversity of ethnic and linguistic people groups. The traditional lens for viewing Chinese history is the dynastic cycle: imperial dynasties rise and fall, and are ascribed certain achievements. This lens also tends to assume Chinese civilization can be traced as an unbroken thread many thousands of years into the past, making it one of the cradles of civilization. At various times, states representative of a dominant Chinese culture have directly controlled areas stretching as far west as the Tian Shan, the Tarim Basin, and the Himalayas, as far north as the Sayan Mountains, and as far south as the delta of the Red River.

The Neolithic period saw increasingly complex polities begin to emerge along the Yellow and Yangtze rivers. The Erlitou culture in the central plains of China is sometimes identified with the Xia dynasty (3rd millennium BC) of traditional Chinese historiography. The earliest surviving written Chinese dates to roughly 1250 BC, consisting of divinations inscribed on oracle bones in the Shang Dynasty, the oldest confirmed dynasty due to such relics in 1899. Chinese bronze inscriptions, ritual texts dedicated to ancestors, form another large corpus of early Chinese writing. The earliest strata of received literature in Chinese include poetry, divination, and records of official speeches. China is believed to be one of a very few loci of independent invention of writing, and the earliest surviving records display an already-mature written language. The culture remembered by the earliest extant literature is that of the Zhou dynasty (c. 1046 – 256 BC), China's Axial Age, during which the Mandate of Heaven was introduced, and foundations laid for philosophies such as Confucianism, Taoism, Legalism, and Wuxing.

China was first united under a single imperial state by Qin Shi Huang in 221 BC. Orthography, weights, measures, and law were all standardized. Shortly thereafter, China entered its classical era with the Han dynasty (202 BC – 220 AD), marking a critical period. A term for the Chinese language is still "Han language", and the dominant Chinese ethnic group is known as Han Chinese. The Chinese empire reached some of its farthest geographical extents during this period. Confucianism was officially sanctioned and its core texts were edited into their received forms. Wealthy landholding families independent of the aristocracy began to wield significant power. Han can be considered on par with that of the contemporaneous Roman Empire: mass production of paper aided the proliferation of written documents, and the written language of this period was employed for millennia afterwards. China became known internationally for its sericulture. When the Han imperial order finally collapsed after four centuries, China entered an equally lengthy period of disunity, during which Buddhism began to have a significant impact on Chinese culture, while calligraphy, art, historiography, and storytelling flourished. Wealthy families in some cases became more powerful than the central government. The Yangtze River valley was incorporated into the dominant cultural sphere.