Metasurface devices have demonstrated powerful electromagnetic wave manipulation capabilities. By adjusting the shape and size parameters of the metasurface microstructure, we can control the resonance between spatial electromagnetic waves and the metasurface, which will trigger wave scattering at a specific frequency. By utilizing these characteristics, we design a metasurface device with a bandpass filtering function and a unit cell of the metasurface consisting of a double-layer pinwheel-shaped metal structure and high resistance silicon substrate (forming metal–silicon–metal configuration). A bandpass filter operating in the terahertz band has been implemented, which achieves a 36 GHz filtering bandwidth when the transmission amplitude decreases by 3 dB and remains effective in a wave incidence angle of 20°. This work uses an equivalent RC resonance circuit to explain the formation of bandpass filtering. In addition, the photosensitive properties of silicon enable the filtering function of the device to have on/off tuned characteristics under light excitation, which enhances the dynamic controllability of the filter. The designed device may have application prospects in 6G space communication.