Dams in ecosystems alter water flow, impacting habitats and species. They offer benefits like water storage but can harm biodiversity and water quality.