A method and apparatus for lowering NOx in diesel engine exhaust gases while maintaining thermal efficiency, by retarding the start of fuel injection, increasing the compression ratio, and reducing the turbocharger inlet flow area to increase turbocharger speed and inlet manifold boost levels for the engine intake air.