An inductor is a coil of wire that creates a magnetic field when an electric current flows through it. The magnetic field stores energy and can be used to create a current in a circuit.