Why Are Dams Built?

One of the main purposes of building many dams is to generate hydroelectricity.