Electromagnets. When an electric current flows in a wire, it creates a magnetic field around the wire. This effect can be used to make an electromagnet .wrapping the coil around a piece of iron.
electromagnet: A magnet made of an insulated wire coiled around an iron core (or any magnetic material such as iron, steel, nickel, cobalt) with electric current flowing through it to produce magnetism. The electric current magnetizes the core material.