A buck converter is a DC-to-DC power converter which steps down voltage from its input to its output. It is a class of switched-mode power supply typically containing at least two semiconductors and at least one energy storage element, a capacitor, inductor, or the two in combination.
In this example from 50 Hz 230 V AC to 5 V DC