So you mean Yu the Great? The legend credits him with massive flood control effort, IIRC.
Yeah. They tried a couple of approaches before they found something that worked. Had to do something because the floods were really bad.