The preparation of Cobalt ferrite-Ocimum sanctum nanocomposite, referred to as CoFe 2 O 4 /OS, has been reported along with its application for the treatment of water containing hazardous organic contaminants. A simple co-precipitation approach was applied for synthesis of magnetic nanocomposite, and a thorough analysis for its characterization was conducted using several spectroscopic and microscopic techniques. The characterization results showed that the magnetic nanocomposite exhibited substantial functional groups of Ocimum sanctum powder and magnetic ferrite part. The adsorption investigation of nanocomposite for removal of two cationic dyes was carried out with varying parameters, such as pH, contact time, temperature, concentration, and composite dosage. The sorption process was proved feasible and exothermic at the tested temperatures (303-323 K). The sorption data followed Freundlich and Temkin isotherms which recommended the physisorption progression. The kinetic study revealed a pseudo-second order rate of sorption process for both dye molecules. The facile preparation, economical cost, significant magnetic character, and high sorption capacity will surely construct the water treatment system more competent with the use of CoFe 2 O 4 /OS.