History of agriculture
Wild grains were collected and eaten from at least 20,000 BC. From around 9500 BC, the eight Neolithic founder crops – emmer wheat, einkorn wheat, hulled barley, peas, lentils, bitter vetch, chick peas, and flax – were cultivated in the Levant. Rye may have been cultivated earlier but this remains controversial. Rice was domesticated in China by 6200 BC with earliest known cultivation from 5700 BC, followed by mung, soy and azuki beans. Pigs were domesticated in Mesopotamia around 11,000 BC, followed by sheep between 11,000 BC and 9000 BC. Cattle were domesticated from the wild aurochs in the areas of modern Turkey and Pakistan around 8500 BC. Sugarcane and some root vegetables were domesticated in New Guinea around 7000 BC. Sorghum was domesticated in the Sahel region of Africa by 5000 BC. In the Andes of South America, the potato was domesticated between 8000 BC and 5000 BC, along with beans, coca, llamas, alpacas, and guinea pigs. Bananas were cultivated and hybridized in the same period in Papua New Guinea. In Mesoamerica, wild teosinte was domesticated to maize by 4000 BC. Cotton was domesticated in Peru by 3600 BC. Camels were domesticated late, perhaps around 3000 BC.
Neolithic
Domestication of sheep and goats reached Egypt from the Near East possibly as early as 6000 BC. Graeme Barker states "The first indisputable evidence for domestic plants and animals in the Nile valley is not until the early fifth millennium BC in northern Egypt and a thousand years later further south, in both cases as part of strategies that still relied heavily on fishing, hunting, and the gathering of wild plants" and suggests that these subsistence changes were not due to farmers migrating from the Near East but was an indigenous development, with cereals either indigenous or obtained through exchange. Other scholars argue that the primary stimulus for agriculture and domesticated animals (as well as mud-brick architecture and other Neolithic cultural features) in Egypt was from the Middle East.