The invention relates to a cosmetic composition comprising, in a cosmetically acceptable medium: (i) one or more compounds selected from ellagic acid, its ethers and the salts of ellagic acid and its ethers, and (ii) one or more compounds selected from pyrithione salts, 1-hydroxy-2-pyridone derivatives and selenium (poly)sulphides, in a weight ratio of the amount of active(s) (i) to the amount of antidandruff agent(s) (ii) of greater than or equal to 0.5. The invention also relates to a method of cosmetic treatment employing such a composition, and to the use of this composition for the treatment of dandruff conditions and for reducing the phenomena of irritation and itching.