The present invention provides a pyrido five-element aromatic ring compound, and a preparation method therefor and a use thereof. The compound provided in the present invention has an inhibitory effect on wild-type and/or mutant EZH2, and is well positioned to become a novel anti-tumor drug or a drug for the treatment of autoimmune diseases.