Production of voltage (electromotive force) due to a changing magnetic flux through an area is called electromagnetic induction. This either happens when a conductor is placed in a changing magnetic field (when using AC power source) or when a conductor is constantly moving in a stationary magnetic field or both at the same time.
This phenomenon was discovered by Michael Faraday.