The invention discloses a compound and an organic electroluminescent device. The structural formula of the compound is shown as a formula 1 in the specification. In the formula, Z1 to Z3 are the sameor different and are each independently selected from CH and N, and Z1 to Z3 are not CH at the same time; Ar1 is a phenyl or deuterated phenyl group; Y is O; and Ar2 is a C1-C4 linear or branched alkyl group, a C1-C4 deuterated linear or branched alkyl group, a C3-C10 cycloalkyl group, a C3-C10 deuterated cycloalkyl group, a C3-C6 cycloalkenyl group, a C3-C6 deuterated cycloalkenyl group, a phenylgroup, a naphthyl group, an anthryl group, a phenanthryl group, a deuterated phenyl group, a deuterated naphthyl group, a deuterated anthrylgroup, or a deuterated phenanthryl group. The compound of the invention is used as a host material of a luminescent layer to the organic electroluminescent device; and the service life of the prepared organic electroluminescent device is greatly prolonged, sothe organic electroluminescent material has very wide application prospects.