A voltage divider is a circuit that divides a voltage into smaller voltages. It consists of two resistors connected in series, and the output voltage is taken from the connection between the two resistors. The function of a voltage divider is to produce a fraction of the input voltage at the output, based on the ratio of the two resistors. This is commonly used in electronic circuits to provide specific voltages for different components or to reduce the voltage level to a desired value.