The invention discloses a coating mildew-proof agent and a preparation method thereof. The mildew-proof agent provided by the invention includes the following raw materials in percentages by weight: 25-50% of a pyrithione salt, 3%-10% of 4,5-dichloro-2-n-octyl-3-isothiazolone, 0.2%-0.6% of a dispersant, 0.02%-0.3% of a defoaming agent, 1%-2% of a consistence modifier, 0.2%-0.5% of an antioxidant,and 40-70% of a solvent; and the fineness of the pyrithione salt is not more than 2[mu]m. The coating mildew-proof agent provided by the invention is a safe, non-toxic high-efficiency and broad-spectrum coating mildew-proof agent with mildness and no irritating to skins, can be widely applied to a coating, and has good compatibility with the coating, and no effects on a plurality of properties such as color, viscosity, levelling performance and stability when the adding amount is proper; the mildew-proof agent provided by the invention can be directly added into the coating when being used, the general recommended usage amount is 0.2%-1%, and the mildew resistant level is 0; and the mildew-proof agent has obvious killing and resisting effects on moulds such as chaetomium globosum, mucor, penicillium, aspergillus terreus and aspergillus niger.