How does the Diesel Tank Pump get the power to run?

The Pump has electrical leads - you clip the pump electrical leads on to your vehicle battery.