A facile, low-cost, and eco-friendly method for treating wastewater containing heavy metals and dyes has been developed in the present work. The novel integrated photocatalyst adsorbent system was successfully synthesized from natural bentonite encompassing delamination of the clay layers and an in-situ sol-gel process to load non-metal-doped titanium dioxide on the clay layers. The nanocomposite system thus synthesized was subjected to calcination at 500 °C. Nitrogen doping of the titanium dioxide nanoparticles in the modified nanocomposite system was enabled via chitosan precursor addition. The structural, morphological, and functional features of the synthesized nanocomposites were further evaluated using different characterization techniques such as Fourier Transform Infrared (FTIR) analysis, UV-visible spectral analysis, X-ray Diffraction analysis (XRD), X-ray photoelectron spectroscopy (XPS) analysis, Brunauer-Emmett-Teller Surface Area (BET) analysis, Scanning Electron Microscopic (SEM) analysis, and Atomic Absorption Spectrophotometric (AAS) analysis. The nanocomposite was then tested for its efficiency in the degradation of an organic dye, methylene blue, and for the adsorption of heavy metal ions (Cu) from model-contaminated water. A high photocatalytic efficiency of 93% was achieved by the nanocomposite when tested against aqueous methylene blue dye (10-5 M) under UV light for about 1 h. The adsorption capacity of the nanocomposite in removing Cu2+ ions from model-contaminated water was found to be 13.82 mg g-1 at optimal conditions of pH 6.0, initial concentration of 10 ppm, and adsorbent dosage of 0.05 g. The photocatalytic efficiency and adsorption capacity of the nanocomposite towards the removal of dyes and heavy metal ions from water could be attributed to the small size of the nitrogen-doped titanium dioxide nanoparticles ( ~ 7 nm) in the nanocomposite which provides an enhanced surface area of 131.2 m2g-1. Thus, the study validates the potential of a modified bentonite system loaded with nitrogen-doped titanium dioxide for wastewater treatment via photocatalysis or adsorption processes.