A power supply takes the AC from the wall outlet, converts it to unregulated DC, and reduces the voltage using an input power transformer, typically stepping it down to the voltage required by the load. For safety reasons, the transformer also separates the output power supply from the mains input.