They build walls to trap the flood. This made a greater farm production.
One way Egyptian farmers were able to produce enough food to creat a surplus is by building walls to trap the flood so it could have a sufficient amount to make a greater farm production to not use alot of water and to not use a bit of water.