This paper proposes a novel terahertz demultiplexer based on metamaterials. Its surface metal structure comprises double U-shaped structures and a rectangular wire. The demultiplexer can separate terahertz of 0.225 THz and 0.410 THz, with high isolations of 41 dB and 38 dB, low insertion losses of 0.07 dB and 0.11 dB, and stable group delays of 3.5 ps and 3.8 ps at the center frequency, respectively. The equivalent parameters of metamaterials are simulated, and the electric field, current, and power distribution characteristics at operating frequency points are analyzed. This metamaterial is easy to process and is expected to be applied in future 6G wavelength division multiplexing systems.