The invention discloses a medicine for treating eczema, prepared by the following raw materials in weight proportion: 10-25 parts of plantain seed, 3-8 parts of akebiaquinata, 5-12 parts of liquorice, 5-12 parts of bamboo leaf, 25-40 parts of semen coicis, 10-20 parts of mulberry twig, 15-35 parts of desmodium, 5-15 parts of chrysanthemum, 5-15 parts of dandelion, 2-6 parts of evergreen, 8-15 parts of spora lygodii, 5-15 parts of herba pyrrosiae, 10-20 parts of oriental wormwood, 40-60 parts of waxgourd peel, 8-15 parts of selfheal, 5-15 parts of rhizoma cyperi, 30-50 parts of Chinese violet,8-16 parts of fructus forsythiae, 20-40 parts of hyacinth bean, 30-50 parts of chinese yam, 5-15 parts of purslane, 10-25 parts of Gorgon fruit and 30-50 parts of honeysuckle. The medicine for treating eczema disclosed by the invention adopts multiple natural raw materials which are scientifically compatible, can realize good effects of clearing away heat and expelling damp, tonifying spleen and nourishing blood, diminishing swelling and relieving pain, relieving itching as well as diminishing inflammation and sterilizing and can effectively treat various eczemas such as acute eczema, subacute eczema, chronic eczema and the like.