Solar steam generation (SSG) is regarded as an efficient approach for harnessing solar energy to purify polluted or saline water. Herein, we demonstrate a hydrogel composed of cellulose nanofibers (CNFs), polyethylenimine (PEI), and reduced graphene oxide (rGO) that functions as an independent solar steam generator, which shows enhanced solar water evaporation efficiency by incorporating silver nanoparticles (AgNPs). It presented that the presence of AgNPs increases the photothermal conversion efficiency and thermal conductivity of the evaporator and reduces the enthalpy of evaporation. As a result, an outstanding water evaporation rate of 3.62 kg m -2 h -1 and a photothermal conversion efficiency of 96.25% are successfully obtained under one sun illumination. Also, the resulting hydrogel exhibits exceptional mechanical properties, as well as outstanding desalination and salt-resistant abilities during prolonged seawater desalination. In oil/water mixtures, the evaporation of the hydrogel decreases to 2.94 kg m -2 h -1 , owing to the oil layer barrier. This work paves a reference approach to produce easily addressed cellulose nanofiber (CNF)-based hydrogel evaporators with significantly enhanced evaporation rates.