The diesel engine drives an alternator, which produces electricity to run electric motors mounted on the locomotive's axles. The internal combustion engine was a dramatic improvement in efficiency over the steam locomotive, making substantial savings possible in maintenance and the elimination of widespread facilities.