Dinitrogen and dioxygen are the major constituents of air. These gases do not react with each other to form oxides of nitrogen because the reaction is endothermic and requires very high temperature. The dissociation energy of N2 is very high due to the presence of triple bond and it is very stable.
N2+O2⇄(1483−2000K)2NO