Explain how combustion engines produce nitrogen oxides.

Fuels are combusted in internal combustion engines, producing a lot of heat.
The high temperature condition causes oxygen and nitrogen in the air to react to form oxides of nitrogen.