The invention relates to a metamaterial modulator, comprising a surface layer, a graphene layer, a first flexible dielectric layer, a perovskite layer, a metal structure layer, a second flexible dielectric layer and an underlying substrate layer arranged from top to bottom; The structural layer is composed of several metal structures. During the modulation process, the electrical conductivity of the graphene layer and the perovskite layer is changed due to the incidence of laser light, and the incident terahertz wave is regulated twice. At the same time, the graphene layer and the surface layer have electrodes, thereby It is also possible to conduct multi-material optoelectronic joint regulation of terahertz waves through electric fields. During the modulation process, the metal structure interacts with terahertz waves to generate resonance, increasing the modulation depth.