A diesel engine (1) provided with a NOx catalyst (28A) and a diesel particulate filter (28B) performs lean burn operation during normal running, rich burn operation during regeneration of the NOx catalyst (28A), operation under the stoichiometric air-fuel ratio during desulphating of the NOx catalyst (28A), and operation under a slightly lean air-fuel ratio to regenerate the filter after desulphating of the NOx catalyst (28A). When the lean burn operation is applied, a controller (31) first controls the fuel injection amount, and controls an air supply amount based on the fuel injection amount. When rich burn operation is applied, the controller (31) first controls the air supply amount and controls the fuel injection amount based on the air supply amount. Due to this control, the response of the excess air factor control is enhanced while preventing torque fluctuation accompanying the variation of the target excess air factor.