This study introduces a novel approach to develop a multifunctional coating on cotton fabric, emphasizing the utilization of cotton fiber as a biological macromolecule, by integrating a TiO2@g-C3N4 layered structure to confer superhydrophobic properties and multiple functionalities. The engineered structure not only enhances fabric roughness but also incorporates non-fluoro hydrophobic agents, thereby imparting diverse capabilities such as photocatalysis, oil-water separation, and self-cleaning to the cotton substrate. Fabrication of the TiO2@g-C3N4 layered structure involved ultrasonic dispersion of TiO2 and g-C3N4, subsequently deposited onto cotton fabric. Sequential hydrophobic treatment with polydimethylsiloxane (PDMS) and isophorone diisocyanate (IPDI) achieved superhydrophobicity, exhibiting an exceptional water contact angle (WCA) of 157.9°. Comprehensive characterization via scanning electron microscopy (SEM), X-ray diffractometry (XRD), X-ray photoelectron spectroscopy (XPS), Fourier-transform infrared spectroscopy (FT-IR), and thermogravimetric validated the composite's structural and chemical properties. The introduced TiO2@g-C3N4 structure significantly enhanced fabric roughness, while PDMS treatment lowered surface energy and IPDI hydrolysis facilitated cross-linking, ensuring durability. The resultant TiO2@g-C3N4/PDMS cotton exhibited outstanding self-cleaning properties and demonstrated oil adsorption capacity, accommodating both heavy and light oils. Notably, this superhydrophobic cotton efficiently separated water-oil mixtures, achieving 96.8 % efficiency even after 10 cycles. Moreover, under simulated light, it displayed outstanding photocatalytic degradation (93.2 %) of methylene blue while maintaining a WCA of 150° post-degradation, highlighting sustained functionality. This innovation holds promise for sustainable applications, offering robust physical and chemical durability within the realm of biological macromolecules. The amalgamation of TiO2@g-C3N4 layered structure and PDMS treatment on cotton fabric underscores a sustainable approach to address water-oil separation challenges and enable efficient self-cleaning. This research demonstrates a significant step towards sustainable material applications and addresses pertinent real-world challenges in diverse technological domains.