The function of a turbocharger is to utilize the energy from engine exhaust gases to drive a turbine, which rotates a coaxial compressor at high speed. This compresses and forces more fresh air into the cylinders, thereby significantly enhancing the engine's combustion efficiency and power output.