Dam stores the river water behind its massive walls. When shutter in the dam is opened, water flows down from a height at very high speed. There is turbine at the foot of dam and when water falls on the turbine, it starts rotating and electricity is generated.