Irrigation allowed the Egyptians to use the Nile's waters for a variety of purposes. Notably, irrigation granted them greater control over their agricultural practices. Floodwaters were diverted away from certain areas, such as cities and gardens, to keep them from flooding.