The invention relates to an organic light emitting device with pyridine compounds. The organic light emitting device has the advantages that an electron barrier layer or a light emitting layer of theorganic light emitting device contains compounds represented by a general formula (1), and accordingly the organic light emitting device is high in efficiency, long in service life and low in cost; the electron barrier layer or the light emitting layer of the organic light emitting device comprises compound molecules represented by the general formula (1), accordingly, electrons and holes can be distributed in the light emitting layer in a balance manner, and the hole injection and transport performance can be enhanced under the condition of appropriate HOMO (highest occupied molecular orbital) energy level; the exciton utilization rate can be effectively increased by the compounds represented by the general formula (1), the high-fluorescence radiation efficiency can be effectively improved by the compounds represented by the general formula (1), the efficiency roll-off under the condition of high current density can be reduced, and voltages of the organic light emitting device can bereduced; the exciton utilization rate can be effectively increased when the compounds are used as light emitting functional layer materials for the OLED (organic light emitting device), the high-fluorescence radiation efficiency can be effectively improved, the efficiency roll-off under the condition of the high current density can be reduced, the voltages of the organic light emitting device canbe reduced, the current efficiency of the organic light emitting device can be improved, and the service life of the organic light emitting device can be prolonged.