Generators produce electricity through magnetic induction. Michael Faraday discovered the principle of electromagnetic induction, which is that a changing magnetic field can induce an electric current in a conductor. This discovery led to the development of generators that use magnetism to efficiently produce electricity on a large scale.