ABSTRACT It is still a challenge to achieve perfect ((near-unity)) absorption across a wide wavelength range with a three-layer structure. This paper presents a metamaterial absorber (MA) based on MXene that can achieve broadband and perfect absorption in the near-infrared and visible regions. The MA with a simple three-layer structure consists of a top Ti3C2T x layer, an intermediate dielectric layer and a bottom gold layer. It can achieve perfect absorption (the absorptivity over 99%) in the wavelength range of 730–900 nm. The electric field distribution reveals that the localized surface plasmon resonance occurring at the interface of Ti3C2T x and SiO2 leads to strong absorption over the wide wavelength range. Furthermore, the MA exhibits excellent angular stability. This work provides a method to construct MAs with broadband perfect absorption in the near-infrared and visible band.