When an electric current flows through a conductor, it creates a magnetic field around it. This magnetic effect is the basis for devices like electromagnets, electric motors, and generators.