Solar-driven interface evaporation is promising to alleviate the fresh water scarcity in an economical and sustainable way. However, most of currently reported photothermal conversion materials (PMs) are time-consuming costly, inefficient, or complex preparation process, which causes low utilization efficiency, and difficult to be practical for large-scale application. To solve this problem, a facile and green strategy for preparing hydrogel evaporator (SiO2-PILs/starch) by grafting poly(ionic liquid)s onto silica and doping it with starch is proposed. Benefiting from the broad solar absorption (ca.91 %), strong hydrophilic, and superb salt tolerance and stain resistance of SiO2-PILs/starch. Under 1 sun irradiation, the SiO2-PILs/starch achieves a remarkable solar evaporation efficiency of 91.72 % in pure water and 81.45 % in 20 wt% NaCl solution, respectively. In particular, SiO2-PILs/starch exhibited outstanding long-term salt stability (8 h) and crystalline salt can be self-cleaned in the dark environment. It is worth noting that the prepared hydrogel also possesses a satisfied evaporation efficiency of 75.84 % in oily wastewater (3 wt% n-hexadecane solution) due to its excellent water retention. These properties of SiO2-PILs/starch may provide desperately needed solution for efficient desalination and guaranteed high applicability and durability in practice.