The invention discloses a municipal sewage treatment method. The method comprises the following steps: 1, collecting municipal sewage through a sewer line, and stirring and crushing the municipal sewage; 2, adding a flocculating agent into the municipal sewage obtained in the step 1, and carrying out uniform stirring; 3, adding H2O2 into the municipal sewage in the step 2 for a sufficient reaction; and 4, enabling drained water obtained in the step 3 to enter a mud-water separator for treatment to obtain treated sewage, wherein the sewage meets the first-grade A requirement of urban sewage discharge. A preparation method of the flocculating agent comprises the following steps: A, taking silicate with a concentration of 30%, sulfuric acid with a concentration of 20% and a sodium hydroxide solution, and carrying out activating to obtain a first solution; B, modifying the first solution, and adding Fe<2+> and Cl<->; C, copolymerizing metal ions and the first solution, and carrying out uniform stirring; and D, carrying out curing to obtain a finished product, adding the prepared flocculating agent. As the flocculating agent is used for treating the discharged water, treatment effect isgood, a treatment speed is obvious, a removal rate is high, turbidity is high, the utilization rate of water resources is improved, and the pressure on the environment is reduced.