Through the medium of electromagnetism, energy from waves get transferred which a hydroelectric power plant heavily rely on. The turbine eventually converts the energy from the waves into mechanical energy which is transformed to electrical energy using a generator.