This paper presents results related to the development of a carbon composite intended for water purification. The aim was to develop an adsorbent that could be regenerated using light leading to complete degradation of pollutants and avoiding the secondary pollution caused by regeneration. The composites were prepared by hydrothermal carbonization of palm kernel shells, TiO2, and W followed by activation at 400 °C under N2 flow. To evaluate the regeneration using light, photocatalytic experiments were carried out under UV-A, UV-B, and visible lights. The materials were thoroughly characterized, and their performance was evaluated for diclofenac removal. A maximum of 74% removal was observed with the composite containing TiO2, carbon, and W (HCP25W) under UV-B irradiation and non-adjusted pH (~5). Almost similar results were observed for the material that did not contain tungsten. The best results using visible light were achieved with HCP25W providing 24% removal of diclofenac, demonstrating the effect of W in the composite. Both the composites had significant amounts of oxygen-containing functional groups. The specific surface area of HCP25W was about 3 m2g−1, while for HCP25, it was 160 m2g−1. Increasing the specific surface area using a higher activation temperature (600 °C) adversely affected diclofenac removal due to the loss of the surface functional groups. Regeneration of the composite under UV-B light led to a complete recovery of the adsorption capacity. These results show that TiO2- and W-containing carbon composites are interesting materials for water treatment and they could be regenerated using photocatalysis.