Before the coming of farming, people gained their food by foraging for nuts, berries and insects, hunting wild game, large and small, and fishing.
A few hunter-gatherer peoples survive to this day, but the world of the hunter-gatherers, in which most ancient people followed this mode of life, is long gone. It disappeared in the millennia following 10,000 BC, as farming and pastoralism gradually spread across the world.