The invention discloses a topical pharmaceutical composition of a phosphodiesterase-4 inhibitor and a preparation method thereof, wherein the topical pharmaceutical composition comprises 0.5 to 10% bymass of apremilast active ingredient, 0.2 to 25% by mass of dimethyl sulfoxide and 65 to 99.3% by mass of a topical pharmaceutical acceptable carrier. The dosage forms of the topical pharmaceutical composition are ointments, creams, gels, coatings, lotions, tinctures, powders and liniments. The invention also discloses the preparation method of the topical pharmaceutical composition and use of the topical pharmaceutical composition. The pharmaceutical composition is not like hormonal drugs which have the side effects to cause adermotrophia after long time of use, and the pharmaceutical composition has no disadvantages such as recurrence after curing, has desired pharmacological activity and less side effects, is stable in quality and convenient to use, is safe and effective in treatment of eczema, and has strong practical application value.