When water from the dam passes through, the turbines spin. This creates electricity. Hydroelectric power is produced as water passes through a dam, and into a river below. The more water that passes through a dam, the more energy is produced.
I hope this was helpful. have a great day.