The invention provides an XPE environment-friendly foam material for an anti-static / flame-retardant vehicle and a preparation method of the XPE environment-friendly foam material. The XPE environment-friendly foam material is mainly prepared from, by weight, 60-80 parts of PE resin, 4-8 parts of anti-static agent, 20-30 parts of self-made composite flame retardant, 5-20 parts of foaming agent, 2-5 parts of cross-linking agent and 3-5 parts of blowing promoter. The material is prepared through extrusion of an XPE master slice in a single-screw extruder, calendaring, continuous normal-pressure foaming in a foaming furnace, cooling and shaping, and trimming and coiling. Anti-static and flame-retardant performance is integrated in the XPE foam material, the formulation is simple and scientific, the material has the anti-static performance and the flame-retardant performance, chemical and physical performance is stable, electrostatic induction and inflammability are completely eliminated, and the foam material is safe, free of toxins and smells and environmentally friendly, and saves energy.