The river bank had been eaten away over the years by the flood water.
If one thing eats away another or eats away at another, it gradually destroys or uses it up. Rot is eating away the interior of the house The recession is eating away at their revenues