In ancient China, farmers in the Huang River valley learned to control the river's floods around 3000 B.C. Ruling families, called dynasties, controlle states for hundreds of years at a time.