He spent more than nine years building a series of dikes and dams along the riverbanks, but all of this was ineffective, despite (or because of) the great number and size of these dikes and the use of a special self-expanding soil.