The invention discloses a long-acting broad-spectrum bacterium resisting and corrosion preventing nano spraying foam agent. The nano spraying foam agent contains the following components by weight percent: 0.1-5% of bacterium resisting drugs, 2-25% of organosilane resin, 1-5% of dispersing agent, 1-8% of preservatives, 0.1-4% of stabilizing agents, 10-95% of solvents and 0.5-5% of disinfectants. The nano spraying foam agent has the characteristics and advantages that the use thickness of the long-acting broad-spectrum bacterium resisting and corrosion preventing nano spraying foam agent product is 10-50mu m; the product has the advantages of friction resistance, heat resistance, aging resistance, radiation resistance, no embrittlement at low temperature, hydrophobicity, moisture resistance, no toxicity, strong light transmittance, capability of resisting bacteria and preventing corrosion for 0.5-6 years, and the like and is widely applied to bacterium resistance, corrosion prevention and disinfection in the fields of medical equipment, household appliances, hospitals, schools, automobiles, families, etc.