A pharmaceutical or cosmetic composition comprising an Indigo Naturalis or Indigo-producing plant extract for treating atopic dermatitis and any form of eczema, and a method of treating atopic dermatitis comprising administering a therapeutically effective amount of an Indigo Naturalis or Indigo-producing plant extract to a subject in need thereof are described.