The invention discloses a compound and an organic electroluminescence device. Its structural formula is shown in formula 1: wherein, R1, R2, and R3 are the same or different, and each independently represents hydrogen, phenyl, biphenyl, terphenyl, Naphthyl, anthracenyl, phenanthrenyl; the phenyl, biphenyl, terphenyl, naphthyl, anthracenyl, phenanthrenyl are unsubstituted or at least one hydrogen is replaced by deuterium, C1-C4 alkyl or benzene The group obtained by substituting the base; R4 is phenyl, biphenyl, terphenyl, naphthyl, anthracenyl, phenanthrene; the phenyl, biphenyl, terphenyl, naphthyl, anthracenyl, phenanthrene The group is unsubstituted or wherein at least one hydrogen is substituted by deuterium, C1-C4 alkyl or phenyl; X is O or S; Y1, Y2, Y3 are the same or different, each independently being N or CH, and Y1, Y2, and Y3 are not CH at the same time, the compound molecule has bipolar characteristics, and has the characteristics of transporting electrons and holes at the same time, which further improves the service life and luminous efficiency of the device.