Dams generally serve the primary purpose of retaining water , while other structures such as floodgates or levees -LRB- also known as dikes -RRB- are used to manage or prevent water flow into specific land regions .

Dams generally serve the primary purpose of retaining water .
