Farming first emerged in Egypt around 9000 BC, with the domestication of dogs and cultivation of grains such as wheat. Early Egyptian farmers domesticated dogs and grew crops like grains.