The chemical interaction of two kinds of dispersants (bis-succinimide dispersant and borated bis-succinimide dispersant) with four kinds of antiwear (AW) and extreme pressure (EP) additives (zinc dialkyldithiophosphate, dialkyldithiophosphate ester, diphenylphosphate ester and dialkyldithiocarbamate) has been investigated under different contact pressures. The chemical compositions of the tribofilms have been studied by B, N, P and S X-ray absorption near edge structure (XANES) spectroscopy. The N K-edge XANES analysis has been used to follow the reaction pathway of amine and imide functional groups in the dispersants and their interactions with EP and AW additives. It has been found that AW additives react with amine to form amine phosphate at low load. However, at high load, there is a good evidence for the formation of a nitrate phase in the tribofilms, the first direct observation of oxidative dispersant loss in the rubbing contact. On the other hand, EP additives behave differently and in general are less reactive. The B K-edge XANES has been employed to follow the interaction of borated dispersant with the EP and AW additive. In general, boron originally in the trigonal coordination, is converted to a tetrahedral coordination form in the process of tribofilm formation.