Michael Faraday was credited for discovering electromagnetic induction.

Electromagnetic induction is when the movement of magnets around a coil of wire is used to create an electrical current through the wire.

Source