Considering the significant harm caused to aquatic ecosystems and marine life by oil spills and the discharge of oily wastewater, there is a pressing need to address this issue to protect our environment and prevent the wastage of valuable resources. We introduced a two-step approach to create an anti-swelling, water-repellent sorbent using a green polysaccharide called gum gellan, functionalized with Octadecyl trichlorosilane (OTS) through dip coating method. Natural gums like gellan have high absorption capability due to their large surface area. However, they are hydrophilic, which means they can only absorb water. This property makes them unsuitable for oil spill applications. To make gum gellan suitable for oil spill applications, we have modified it in this study. We have introduced a material called octadecyltrichlorosilane, which has low surface energy and hierarchical roughness. This modification changes the wettability of gellan from hydrophilic to hydrophobic/oleophilic, allowing it to absorb oil and repel water. The sorbent is analyzed using several techniques, such as FTIR, XRD, TGA, FE-SEM, BET, Raman, EDX, and H1-NMR. The hydrophobic sorbent obtained demonstrates low density, high surface area, and high porosity. These characteristics give it excellent floatability and immediate and exceptional selectivity for absorbing oil from water. Additionally, it does not absorb any detectable amount of water. The sorbent exhibited a water contact angle (WCA) of 140 ± 3 ° and an oil contact angle (OCA) of 0° for various oils and organic solvents. It has rapid oil absorption capacity of 3.72 g/g for diesel, and can be easily recovered after use. The BET analysis revealed that after the modification with OTS, the sorbent's total surface area increased from 0.579 m2/g to 4.713 m2/g. This indicates that the OTS modification greatly enhances the surface area and pore volume of the, thus improving its ability to absorb oil. This sorbent efficiently separates oil-in-water emulsions, both surfactant-stabilized and surfactant-free, achieving over 90% separation through gravity alone. Moreover, the sorbent can sustain its wettability even under harsh environmental conditions, including exposure to acids, alkalis, and salts. The absorption data predominantly aligned with the pseudo-2nd-order model. Thus, this sorbent provides a cost-effective alternative for efficiently absorbing and separating oil-water emulsions in households and industries.