The invention discloses an anti-mildew carton adhesive, which is prepared from the following raw materials in parts by weight: 65-75 parts of water, 9-12 parts of rice starch, 22-30 parts of sticky rice starch, 12-16 parts of calcium carbonate, 1-2 parts of sodium hydroxide, 3-4 parts of epoxy resin, 0.12-0.16 part of a naphthalene sulfonate formaldehyde condensation compound, 1.5-1.8 parts of carboxymethyl cellulose, 0.3-0.5 part of borax, and 1.5-1.7 parts of a preservative. A preparation method comprises the following steps: pouring water into a container, and regulating the temperature of water to be 50-70DEG C; adding rice starch into water, then evenly stirring and adding sticky rice starch, and stirring to be thick, to obtain an emulsion A; adding calcium carbonate into the emulsion A, and stirring to obtain an emulsion B, wherein the stirring time lasts 10-20min; adding sodium hydroxide, epoxy resin, naphthalene sulfonate formaldehyde condensation compound, carboxymethyl cellulose, borax and preservatives into the emulsion B, evenly stirring, and then standing and cooling. The anti-mildew carton adhesive is strong in adhesion power and difficultly generates mildew.