Agriculture is the science or practice of cultivating the soil producing crops and raising livestock, then eventually creating products. Humans used to get food from hunting and gathering, but developed into agriculture. Agriculture provides more food at one time.
Ancient Egyptians used basin irrigation to control the the rise and fall of the Nile River to best suit their agricultural needs. Basin irrigation is a criss-cross network of walls that are formed in a field of crops and flooded by a river. When floods came, the water would be trapped by the walls and used for growing crops. This agricultural system has a lot in common with dams that are used very much today.