The invention relates to a preparation method of a sewage corrosion and scale inhibitor. The raw materials include: reverse osmosis water, ammonium persulfate, an oxidizing agent, phosphorus trichloride, sodium sulfonate, methylbenzotriazole, expanded graphite, disodium hydroxyethylidene diphosphonate, dimethylamine, acrylic acid, acrylamide, zinc chloride, zinc chloride, sodium lignin sulfonate and isopropyl alcohol. The heavy metal ion elution rate is up to 92-99%, the BOD removal rate is 88-92%, the penicillium fermentation broth and streptomyces griseus fermentation broth have a flocculation rate of 88-90%, the calcium carbonate scale inhibition rate is 98-99%, the corrosion rate of carbon steel is 0.0014-0.002mm/a, the COD removal rate is 84-94%, the SS removal rate is 99.7-99.9%, thecalcium carbonate scale inhibition rate is up to 99-99.6%, the strontium sulfate scale inhibition rate is 99.2-99.6%, the carbon steel slow release rate is 89-97%, and the sustained release rate of galvanized material is 93-97%.