What Did Mesopotamians Build To Control Flooding Rivers?

What Did Mesopotamians Build To Control Flooding Rivers? The farmers in Sumer created levees to hold back the floods from their fields and cut canals to channel river water to the fields. The use of levees and canals is called irrigation, another Sumerian invention. How did the Mesopotamians solve the problem of yearly river flooding?