The present invention provides an EGFR kinase inhibitor and a preparation method and use thereof. Specifically, the present invention provides a compound as shown in formula (I), the definition of each group therein being as described in the description. Said compound is an efficient EGFR inhibitor.