Functional superhydrophobic cotton fabrics find extensive applications in both textile and non-textile domains. Nonetheless, fabric treatment typically relies on fluorine-containing compounds, inorganic nanoparticles and potentially hazardous organic solvents, posing environmental risks during fabrication and disposal. To address this issue, endeavours are underway to develop environmentally sustainable and cost-effective methods and materials for imparting superhydrophobic properties to cotton fabric surfaces. Here, we prepared lignin nanoparticles (LNP) utilising deep eutectic solvents and facilitated their surface adhesion to cotton fabrics through the self-polymerisation of tannic acid (TA) under alkaline conditions for the construction of micro-/nanostructures on the fabric surface. Subsequently, methyltrimethoxysilane (MTMS) was employed to confer superhydrophobic properties to the fabrics using a combination of thermal chemical vapour deposition techniques, resulting in a contact angle of approximately 164.3° and a sliding angle of 8.52°. Owing to the combined effect of TA and LNP, the modified fabrics exhibited excellent ultraviolet (UV) shielding ability (UV transmittance < 1 %, UV protection factor = 50 + ) and photothermal conversion (54.2 °C in 150 s). In short, micro-/nanostructures with surface hydrophilicity were constructed on the surface of cotton fabrics using two hydrophilic biomaterials, i.e. TA, which is similar to polydopamine but lighter in colour and less expensive, and LNP as sustainable colloidal particles. Subsequently, their surface roughness was further enhanced, and superhydrophobic properties were imparted through modification with the low surface energy substance MTMS. This method not only promotes the high-value utilisation of lignin but also serves as a reference for constructing superhydrophobic structures using biomass hydrophilic materials on cellulose substrates. The prepared superhydrophobic fabric suggests potential applications in water and stain repellence, self-cleaning, outdoor UV protection and the management of marine oil spill pollution.