An epidermal growth factor receptor inhibitor as shown in the following formula, a pharmaceutical composition containing the receptor inhibitor, and use of the inhibitor or the pharmaceutical composition as a medicine for preventing and/or treating cancers. The groups have definitions described in the description. The compound shows good EGFR inhibition activity especially for a mutational EGFR, thereby being expected to be a medicine which resists tumors, having drug resistance due to EGFR mutations, has a specific curative effect and is less in side effects.本發明屬於醫藥化學領域,具體提供一類新的表皮生長因子受體抑制劑、含有該抑制劑的藥物組合物,以及所述抑制劑或藥物組合物作為癌症預防和/或治療藥物的用途。該類化合物表現出良好的EGFR抑制活性,尤其是針對突變的EGFR,有望成為對抗EGFR突變導致耐藥的腫瘤具有特異療效且副作用較小的藥物。無