The aim of this research was the simultaneous removal of heavy metal and dye pollutants from water by a clinoptilolite–TiO2 nanocomposite. The nanocomposite was prepared by the synthesis of TiO2 nanoparticles on clinoptilolite. The structure and morphology of the clinoptilolite–TiO2 nanocomposite were studied by XRD, SEM, EDS and FTIR. The TiO2 synthesis and loading on clinoptilolite were confirmed by EDS, XRD and FTIR analysis. The TiO2 particle size was estimated by SEM images and XRD analysis to be less than 80 nm. The photocatalytic performance of the nanocomposite was evaluated for acid orange 7 (AO7) photodegradation under UV light irradiation in the presence of Pb2+. The removal of Pb2+ ions was investigated at the same time and the effect of the initial solution pH, the effect of AO7 and Pb2+ concentration were examined. The results indicated that the nanocomposite can simultaneously remove 77% of metal and 85% of dye from wastewater containing 500 ppm Pb2+ and 40 ppm AO7. The removal of Pb2+ ions was investigated at the same time and the effect of the initial solution pH, the effect of AO7 and Pb2+ concentration were examined. The results indicated that the nanocomposite can be used for the simultaneous photodegradation of AO7 and the removal of Pb2+ from water several times without a noticeable reduction in their efficiency. Also, the presence of the dye molecules led to a 10% increase in the removal efficiency of Pb2+ compared to when just Pb2+ was present.