Corncob (CC) based solar evaporators were employed to desalinize seawater brought from the Vallarta coast in Mexico. The pure CC produced an evaporation-rate and evaporation-efficiency of 0.63 kg m−2 h−1 and 38.4%, respectively, under natural solar light. Later, the CC was coated with carbonized CC (CCCE evaporator) or was coated with graphene (CCGE evaporator). Those evaporators were used for the desalination of seawater and obtained higher evaporation rates of 1.59–1.67 kg m−2 h−1, and higher evaporation efficiencies of 92–94% (under natural solar light). The desalination experiments were repeated under artificial solar light and the evaporation-rates/evaporation-efficiencies slightly decreased to 1.43–1.52 kg m−2 h−1/88–92%. The surface analysis of the evaporators by FTIR, XPS and Raman revealed that the CCGE evaporator had on its surface a lower content of defects and a higher amount of OH groups than the CCCE evaporator. Therefore, the CCGE evaporator had higher evaporation-rates/evaporation-efficiencies in comparison with the CCCE evaporator. Furthermore, we purified water contaminated with three different herbicides (fomesafen, 2–6 dichlorobenzamide and 4-chlorophenol at 30 ppm) by evaporation and using natural solar light. Interestingly, the CCCE and CCGE evaporators also removed the herbicides by physical adsorption with efficiencies of 12–22.5%. Moreover, the CCGE evaporator removed vegetable oil from contaminated water by adsorption and its maximum adsorption capacity was 1.72 g/g. Overall, our results demonstrated that the corncob-based evaporators studied here are a low-cost alternative to obtain clean water under natural solar light and this one was more effective for the desalination of seawater than the artificial sunlight (Xe lamp).