Disclosed are a topical preparation for inhibiting tyrosine kinase and a preparation method thereof, and especially a topical pharmaceutical composition for inhibiting tyrosine kinase and a preparation method thereof. The active ingredient of the topical preparation is Icotinib or a pharmaceutically acceptable salt thereof. This formulation is suitable for topical application, and has the advantage little skin irritation, and no adverse reactions such as pruritus, burning sensations, tingling, dry skin, redness and rashes, and long-term use does not produce parahormone-related side effects such as skin atrophy, pigmentation or degeneration, as well as having no related dermatological symptoms after drug withdrawal. The preparation method has the advantages of beingsimple, easy to operate and control, easily industrialized and so on.