A resistor is a component in an electrical circuit that restricts or controls the flow of electric current.