Allow me to quote the internet and give ya the breakdown,
When combustion temperatures exceed 2500°F, atmospheric nitrogen begins to react with oxygen during combustion. The result is various compounds called nitrogen oxides (NOX), which play a major role in "
urban air pollution."
To Limit NOX carbon (your exhaust) is recycled back into the engine limiting how much O2 is in the combustion process. Less O2 being combusted = Temperatures below 2500°F = low to no NOX. The EGR valve controls a small passageway between the intake and exhaust manifolds. When the valve opens, intake vacuum draws exhaust through the valve. This dilutes the incoming air/fuel mixture and has a quenching effect on combustion temperatures which keeps NOX within "
acceptable limits".
If the EGR is malfunctioning (staying open or closed) most the time it is caused by carbon buildup. The fix? Remove the valve and used carb cleaner to remove the Carbon deposits.