Combined with the development of agriculture, which allowed for a surplus of food, it became possible for early civilizations to develop, because more time and effort could be devoted to tasks (other than food production) than hunter-gatherers or early subsistence farmers had available.
Having a surplus of food allowed farmers and hunter-gatherers to spend less time working on what?
food production