When fuels are burned in vehicle engines, high temperatures are reached.
At these high temperatures nitrogen and oxygen from the air react to produce nitrogen oxides:
nitrogen + oxygen → nitrogen oxides
eg
N2 (g) + O2 (g) → 2NO (g)
In the atmosphere these nitrogen oxides can combine with water to produce nitric acid (HNO3).