Agriculture was an important part of both their economies. Both civilizations had recently discovered agriculture, and it was what allowed them to produce enough food to sustain the population of a civilization, instead of belonging to small, migrating hunter-gatherer groups.