The invention relates to a flame-retardant resin which comprises the following components in parts by mass: 10-20 parts of chlorinated styrene, 10-15 parts of maleic anhydride, 20-30 parts of tetrachloro phthalic anhydride, 40-55 parts of neopentyl glycol, 2-7 parts of methyl methacrylate, 8-15 parts of fiber, 6-10 parts of copper naphthenate, 1-3 parts of cobalt isooctoate, 20-30 parts of calcium carbonate and 8-12 parts of silicon dioxide. The tetrachloro phthalic anhydride used as the raw material can enhance the flame retardancy of the resin, and the chlorinated styrene used as the curing agent further enhances the flame retardancy of the resin. The flame-retardant resin has the characteristics of high temperature resistance, corrosion resistance, high strength, long service life of the prepared part, simple processing technique, no toxicity after curing, high bonding strength, simple and controllable technical process, short production cycle and the like, and can be cured at normal temperature. In the resin synthesis process, the heat generated by chemical reaction is fully utilized, thereby saving the energy and avoiding generating three wastes.