Disclosed is a method of preparing a hair care composition comprising a step of controlling temperature when adding antidandruff agents. The method of the present invention provides reduced agglomeration of antidandruff agents selected from metal pyrithiones.