This invention relates to the field of metasurface technology, specifically disclosing a nonlinear
beam shaping method based on stacked moiré metasurfaces. The method includes: obtaining the frequency
harmonic wavelength of the fundamental light and the target emission angle of the nonlinear beam; calculating the quasi-period of the moiré lattice of the stacked moiré metasurface; calculating the correspondence between the lattice period and the twist angle of the stacked moiré metasurface; obtaining a stacked moiré metasurface with the stated correspondence; and forming a nonlinear beam by irradiating the fundamental light onto the stacked moiré metasurface, wherein the emission angle of the nonlinear beam is the target emission angle. This invention calculates the correspondence between the lattice period and the twist angle of the stacked moiré metasurface based on the target emission angle of the nonlinear beam, fabricates stacked moiré metasurfaces with different lattice periods and twist angles, and forms rich
momentum components through the combination of
reciprocal lattice vectors of multiple basic metasurfaces, thereby precisely modulating the nonlinear beam.