What allowed the Egyptians to produce a surplus of food? Why was this important? Two sentences

The Egyptians were able to produce a surplus of food due to the annual flooding of the Nile River, which provided fertile soil for agriculture. This surplus was important as it allowed for the development of a stable and prosperous society, supporting the growth of cities and the rise of a ruling class.