A potentiometer is a variable resistor that is commonly used to control the electrical resistance in a circuit. Its main purpose is to adjust the voltage or current in a circuit by changing the resistance value. Potentiometers are often used in volume controls, dimmer switches, and as sensors in electronic devices to provide variable or adjustable levels of voltage or current.