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. A simple electromagnet comprises a length of wire turned into a coil and connected to a battery or power supply.