A voltage regulator is a device that reduces or regulates the voltage in an electrical system to protect equipment and improve stability. It is often used in electrical systems where the voltage can be unstable or variable, and where it is necessary to protect the equipment from overvoltage or undervoltage situations.