A resistor is a passive electronic component that limits or controls the flow of electric current in a circuit. It provides a specific resistance value (measured in ohms, Ω) to regulate voltage and current levels, protecting components and ensuring proper circuit operation.