It was only with the advent of techniques like irrigation and soil tilling about 5,000 years ago that people could rely on a steady and long-term supply of food, making permanent settlements possible.