Arylamino purine derivatives represented by formula I and their preparation method are disclosed, wherein each substituent is defined as in the description. The derivatives have an inhibitory effect on non-small cell lung cancer with deletion mutation of exon 19 or L858R point mutation of exon 21 in epidermal growth factor receptor (EGFR).