The invention discloses a heavy metal trapping agent for wastewater treatment. The trapping agent includes olea europaea pomace, olea europaea sawdust, 2, 4, 6-trimercapto-1, 3, 5-triazine trisodium salt, magnetic biochar, pyrrolidine dithiocarbamate chelated cellulose, N, N'-bis(2-mercaptoethyl)-1, 3-phenyldicarbonamide, hexathioguanidine formic acid, a crosslinking agent, sulfonated thiacalixarene, sodium sulfide, modified sericin, polyaspartic acid, beta-cyclodextrin, thiocarbazide, an accelerant, N, N, N, N-(1, 2, 4, 5-tetramercaptoethyl)benzenetetraamide. The trapping agent is used for treating mixed heavy metal wastewater, through the synergistic effect of all components, can improve the trapping ability of heavy metals with weak competitive trapping ability in the mixed system, through mutual cooperation and promotion, can overcome the antagonistic or competitive effect among various ions, gives full play to the advantages of all treatment methods, can treatment Cu<2+>, Cd<2+>,Hg<2+>, Pb<2+>, Mn<2+>, Ni<2+>, Zn<2+>, Cr<3+>, Cr<6+> and various heavy metals in wastewater, and especially has very good trapping effect Cr<6+>.