the Egyptians dug channels and walls to divert flood water away from cities and towards fields for farming. This was called basin irrigation. They also invented tools like the shaduf.