Electrical energy can be generated from the mechanical energy in a flow of water. Most hydroelectric power is created by the gravitational potential of water which is above sea level, and the tendency of that water to flow downhill. tidal currents are also used.