The invention belongs to the technical field of environment-friendly product preparation, and provides an environment-friendly foam preparation. The environment-friendly foam preparation is prepared from the following raw materials in percentage by weight: 5-15% of lauryl sodium sulfate, 2-6% of octaphenyl polyoxyethyiene, 2-6% of alkylphenol ethoxylate, 4-10% of a foam stabilizer, 0.2-2% of a preservative, 0.2-1% of a stabilizer, 0.2-2% of a foam aid and the balance of water. All the raw materials are green and environmentally friendly and have biodegradability. The environment-friendly foampreparation has high temperature resistance, the highest temperature can reach 150 DEG C, the high salinity resistance is achieved, the highest salinity can reach 300 g/L, the high oil resistance is achieved, and the highest condensate oil content can reach 30%. Good foaming capability, foam stabilizing capability and liquid carrying capability are achieved. The environment-friendly shield foamingagent disclosed by the invention is stable in quality and good in corrosion resistance, is not influenced by the storage temperature and storage time, and has a relatively long shelf life. The preparation method is simple to operate, easy to prepare and suitable for large-scale production.