In internal combustion engines, exhaust gas recirculation (EGR) is a nitrogen oxide () emissions reduction technique used in petrol/gasoline, diesel engines and some hydrogen engines. EGR works by recirculating a portion of an engine's exhaust gas back to the engine cylinders.  The exhaust gas displaces atmospheric air and reduces  in the combustion chamber. Reducing the amount of oxygen reduces the amount of fuel that can burn in the cylinder thereby reducing peak in-cylinder temperatures.  The actual amount of recirculated exhaust gas varies with the engine operating parameters.
In the combustion cylinder,  is produced by high-temperature mixtures of atmospheric nitrogen and oxygen, and this usually occurs at cylinder peak pressure. In a spark-ignition engine, an ancillary benefit of recirculating exhaust gases via an external EGR valve is an increase in efficiency, as charge dilution allows a larger throttle position and reduces associated pumping losses. Mazda's turbocharged SkyActiv gasoline direct injection engine uses recirculated and cooled exhaust gases to reduce combustion chamber temperatures, thereby permitting the engine to run at higher boost levels before the air-fuel mixture must be enriched to prevent engine knocking.
In a gasoline engine, this inert exhaust displaces some amount of combustible charge in the cylinder, effectively reducing the quantity of charge available for combustion without affecting the air-fuel ratio. In a diesel engine, the exhaust gas replaces some of the excess oxygen in the pre-combustion mixture. Because  forms primarily when a mixture of nitrogen and oxygen is subjected to high temperature, the lower combustion chamber temperatures caused by EGR reduces the amount of  that the combustion process generates. Gases re-introduced from EGR systems will also contain near equilibrium concentrations of  and CO; the small fraction initially within the combustion chamber inhibits the total net production of these and other pollutants when sampled on a time average. Chemical properties of different fuels limit how much EGR may be used. For example methanol is more tolerant to EGR than gasoline.