China's settled history begins in the Neolithic period with the Yangshao culture (c. 5000–3000 BCE) and Longshan culture (c. 3000–1900 BCE) in the Yellow River (Huang He) valley. These agricultural communities cultivated millet, raised pigs, made painted pottery (Yangshao) and fine black pottery (Longshan), and built semi-subterranean and walled settlements.
Earlier Paleolithic hunter-gatherers occupied the region from at least 1.7 million years ago (Homo erectus at Yuanmou). The Xia dynasty (traditionally c. 2070–1600 BCE) represents the first hereditary state, though archaeological confirmation continues. Continuous civilization in the Yellow River basin makes China one of the world's cradles of civilization.