Abstract. Total quenching rate coefficients of Herzberg states of molecular oxygen and three triplet states of molecular nitrogen in the collisions with O 2 and N 2 molecules are calculated on the basis of quantum-chemical approximations. The calculated rate coefficients of electronic quenching of O * 2 and N * 2 molecules show a good agreement with available experimental data. An influence of collisional processes on vibrational populations of electronically excited N 2 and O 2 molecules is studied for the altitudes of high-latitude lower thermosphere and mesosphere during auroral electron precipitation. It is indicated that molecular collisions of metastable nitrogen N 2 (A 3 + u ) with O 2 molecules are principal mechanism in electronic excitation of both Herzberg states c 1 − u , A 3 u , A 3 + u and high vibrational levels of singlet states a 1 g and b 1 + g of molecular oxygen O 2 at these altitudes.