Phosphoramide mustard functionality incorporated into the quinazoline scaffold as EGFR/HER2 inhibitors were proposed. The mechanism studies were supported on DNA damage. Compound 10d is a potential candidate for treatment of lung cancer. MTD study indicated that compound 10d had no obvious acute toxicity.