The invention relates to a method for producing an anti-corrosion pattern in production of a printed circuit board, and the method comprises the steps of: drilling a hole, metalizing the hole, performing electrophoretic coating of a resist, producing the anti-corrosion pattern by laser, performing chemical etching and the like. The method with the electrophoretic coating of a resist and the production of the anti-corrosion pattern by the laser is adopted for replacing an existing tenting method process with the steps of hot-press lamination of an anti-corrosion photoinduced masking dry film, exposure, developing and the like or replacing the steps of pattern electroplating of an anti-corrosion metal layer and the like. According to the method disclosed by the invention, a process route for producing the anti-corrosion pattern is shortened, the operation steps are simplified, the operability is improved, the anti-corrosion coating is applied by electrophoresis, materials are easy to obtain, the operation is simple and easy, and the formed anti-corrosion coating is thin in thickness, uniform and reliable; and the anti-corrosion pattern formed by direct photoetching through the laser method is high in precision, good in an environment and great in production flexibility. The method disclosed by the invention is suitable for sample, small-batch, multi-variety and higher-precision production of the circuit boards, and is also suitable for production of ordinary circuit boards.