The invention belongs to the fields of drugs and chemical industry, and discloses a quinazoline derivative and a preparation method thereof and an application of the quinazoline derivative used as an anticancer drug. The structural formula of the quinazoline derivative is shown in the specifications, wherein R1 is NH(CH2)mNR5 or NH(CH2)m-Ar; R2 is NHCO(CH2)n NR5, NHCO(CH2)n-Ar, NHCO(CH2)nNH(CH2)nNR5 or NHCO(CH2)nNH(CH2)n-Ar; R3 is F, Cl, Br, I, H, CH3, SO2CH3 or OCH3; R4 is H, NHCO(CH2)nNR5, NHCO(CH2)n-Ar, NHCO(CH2)nNH(CH2)nNR5 or NHCO(CH2)nNH(CH2)n-Ar; -Ar represents various aromatic rings comprising various aromatic heterocyclic rings; m is equal to 2, 3 or 4; n is equal to 1, 2, 3, 4 or 5; and R5 represents alkyl of C1-6, cycloalkyl of C3-6, piperidyl, morpholinyl, piperazinyl or quinoxalinyl. The invention simultaneously discloses the preparation method of the quinazoline derivative and the application of the quinazoline derivative used as the anticancer drug. The experiment proves that the quinazoline derivative of the invention has strong inhibiting effect on telomere DNA expression, has obvious inhibiting effect on various kinds of cancer cell strains, has low toxicity to normal cells, and has wide application prospects in preparation of anticancer drugs.