Dams are barriers built across rivers or streams to control water flow for uses like irrigation, hydropower, and flood control. The main types are embankment dams made of earth or rock and concrete dams like gravity, arch, and buttress dams. Dams provide benefits like irrigation, power, flood control, and recreation but can also negatively impact river ecosystems and require relocation of people. Engineers consider factors like geology, material availability, and hydrology to select the optimal dam type and site for a given project. Ancillary structures like spillways and outlets control water release.