The present invention provides rosmarinic acid or a salt thereof for specifically inhibiting an epidermal growth factor receptor (EGFR), wherein the rosmarinic acid or a salt thereof can be used to inhibit a wild type cancer and a drug-resistant cancer, and promote axon regeneration of neurons. The present invention further provides a pharmaceutical composition for specifically inhibiting an epidermal growth factor receptor (EGFR) and the pharmaceutical composition includes rosmarinic acid or a salt thereof and a pharmaceutical acceptable excipient. The present invention still further provides an use of rosmarinic acid or a salt thereof for the production of a drug for inhibiting an epidermal growth factor receptor (EGFR).本發明係提供一種專一性抑制表皮生長因子接受器(EGFR)之迷迭香酸或其鹽,其可用於抑制野生型及抗藥型癌症,並且可增加神經元中軸突的再生。本發明進一步提供一種專一性抑制表皮生長因子接受器之醫藥組成物,係包含迷迭香酸或其鹽以及醫藥上可接受之賦形劑。本發明再進一步提供一種迷迭香酸或其鹽的用途,其係用於製造抑制表皮生長因子接受器(EGFR)的藥物。