The correct answer is D. farming. Farming made the first villages possible because it allowed humans to settle in one location and engage in permanent agriculture. This led to the development of food surplus, which supported a sedentary lifestyle and a community-based settlement.