Interfacial solar steam generation using aerogels holds great promise for seawater desalination and wastewater treatment. However, to achieve aerogels with both durable, high-efficiency evaporation performance and excellent salt resistance remains challenging. Here, a molybdenum disulphide (MoS2) and MXene composite aerogel with vertical pore channels is reported, which has outstanding advantages in mechanical properties, water transportation, photothermal conversion, and recycling stability. Benefiting from the plasmon resonance effect of MXene and the excellent photothermal conversion performance of MoS2, the aerogel exhibits excellent light absorption (96.58 %). The aerogel is resistant to deformation and able to rebound after water absorption, because of the support of an ordered vertical structure. Moreover, combined with the low water evaporation enthalpy, low thermal conductivity, and super hydrophilicity, the aerogel achieves an efficient and stable evaporation rate of about 2.75 kg m−2h−1 under one sun and exhibits excellent self-cleaning ability. Notably, the evaporator achieves removal rates of 99.9 % for heavy metal ions and 100 % for organic dyes, which has great potential in applications including seawater desalination and wastewater purification.