The invention discloses an anti-rust undercoat of a mine production machine. The anti-rust undercoat consists of the following raw materials in parts by weight: 67 to 79 parts of epoxy resin, 59 to 65parts of an acrylate emulsion, 3 to 9 parts of petroleum sodium sulfonate, 2 to 5 parts of organic polycarboxylic acid, 3 to 7 parts of zinc phosphate, 2 to 6 parts of zinc oxide, 6 to 12 parts of sodium polyphosphate, 3 to 6 parts of sodium tripolyphosphate, 1 to 4 parts of methyl isobutyl ketone, 4 to 8 parts of silicon carbide, 2 to 6 parts of inositol hexaphosphate, 3 to 8 parts of phenol salicylate, 1 to 6 parts of propylene glycol, 2 to 5 parts of diacetone alcohol, 1 to 8 parts of nanometer graphene, 1 to 4 parts of aluminum hydroxide powder, 0.5 to 0.9 part of aluminum stearate, 1 to4 parts of lead naphthenate, 2 to 5 parts of diatom powder, 3 to 7 parts of methyl propane, 1 to 5 parts of triethylene diamine, 2 to 5 parts of xylene, 1 to 3 parts of carbon black, 2 to 6 parts of aPH conditioning agent, 1 to 4 parts of defoaming agent, 17 to 25 parts of castor oil and 29 to 43 parts of deionized water. The anti-rust undercoat disclosed by the invention is high in adhesive force, rapid in drying, high in heat resistance, environmentally friendly and pollution-free, the excellent performance of high molecular materials inside the raw materials is improved, and the undercoatcan be preferably combined with a finishing coat.