The invention discloses an anti-flaming thermal-insulation environmentally friendly polymeric foaming material and a method for producing the material. The method comprises the following steps: preparing a urea resin foam adhesive by successively adding 37 % of formaldehyde, polyvinyl alcohol and glycerin in a reaction kettle and stirring to heat up and then adding urea, hexamethylene tetramine, stabilizer and thiourea, preparing a foaming agent by firstly adding water in a stirring tank, successively adding nekal and nonylphenol polyoxylethylene ether with stirring, heating up for completely dissolving, and then adding phosphoric acid, glycerin and sodium phosphate, uniformly stirring until completely dissolving, and discharging and packaging, and preparing a foamed product by taking the urea resin adhesive, urea and the foaming agent, mixing and stirring uniformly, putting in a foaming machine to foam, and carrying out foaming, extrusion molding, drying and packaging. The invention can be widely applied in thermal insulation of building facilities, thermal insulation of venue decoration, shock absorption, replacement of benzene plate flexible package without anti-flaming property, and the like.