An inductor is a device that resists changes in electrical current. It stores electrical energy in the form of a magnetic field and releases it back into the circuit when the current tries to change. It is used in electronic circuits to control the flow of electricity and stabilize voltage levels.