The phenomenon of generating electric current by varying magnetic fields is known as electromagnetic induction.