Why was the hoover dam built?

http://en.wikipedia.org/wiki/Hoover_Dam