Plant domestication began around 10,000 years ago in Mesopotamia where early humans domesticated wheat, barley, lentils and peas. A key early site of plant domestication was the Balsas River valley in Mexico where corn was first domesticated from teosinte plants. Rice was independently domesticated in China from wild rice and in Africa from a different species of wild rice. Beans were domesticated in both Mexico and Peru from wild beans, and potatoes were first encountered and eventually domesticated by peoples in the Andes mountains of South America. Plant domestication was a major development that allowed nomadic humans to settle down into agricultural societies.