The operating principle of electromagnetic generators was discovered in the years 1831 - 1832 by Michael Faraday.
The principle, later called Faraday's law, is that an electromotive force is generated in an electrical conductor which encircles a varying magnetic flux.