The invention discloses a novel material containing biomimetic enzymes. The material uses PEI to synthesize gold nanoparticles. PEI is a positively charged polymer rich in imine groups and amine groups and has good water solubility. It can be combined with chloroauric acid Coordination of gold ions in the PEI, using the reduction of PEI branched chain amino groups to prepare gold nanoparticles with uniform particle size and stability. In addition, because the PEI molecule contains amino groups, it is easy to form an amide bond with Hemin, so that the Hemin molecule is connected to the PEI containing gold nanoparticles, and through centrifugation and separation and purification, a hematoporphyrin biomimetic material wrapped with gold nanoparticles is obtained. . This new type of material not only has the high catalytic performance of biomimetic enzymes, it can be used as an electrochemical probe to detect the content of pollutants in water, such as hydrogen peroxide, catechol, etc. On the other hand, due to the porous structure of the material itself, it can Dye molecules, such as methyl orange, rhodamine, etc., are adsorbed to protect the ecological environment.