The invention relates to an A-class fire-retardant water-proof rat-proof ant-proof intermediate-voltage special cable for the rail traffic. The cable comprises a conductor; a conductor shielding layer, an insulation layer, an insulation shielding layer, a wrapping layer, a metal shielding layer, a water blocking layer, a flame-retardant layer, an inner sheath, a metal armored layer, and an outer sheath are arranged successively outside the conductor, wherein the conductor shielding layer, the insulation layer, and the insulation shielding layer re in a three-layer co-extruded manner. The innersheath is an extruded halogen-free low-smoke flame-retardant oxygen barrier layer formed by wrapping of two alkali-free glass tapes. The outer sheath is formed by extruding an optical cement by a low-smoke halogen-free fire-retardant rat-proof ant-proof high-polymer material; and the optical cement has the thickness of 10 to 20 microns. The outer sheath is a polyvinyl chloride outer sheath; and awhite-ant-proof plant additive that is non-toxic and is harmless to the human body and the environment is added into the outer sheath. The cable has characteristics of excellent environmental protection effect and good low-smoke, halogen-free, flame-retardant, waterproof, anti-ultraviolet radiation, rat-proof, and ant-proof performances and the like.