The present invention relates to a method of preparing a hair care composition comprising a step of adding perfume, silicone, phenoxyethanol, benzyl alcohol, and/or parabens perfumes and/or silicones, before adding antidandruff agents. Preferably, perfumes and/or silicones are added before adding antidandruff agents. The method of the present invention provides reduced agglomeration of antidandruff agent selected from metal pyrithiones.