The present study explores the solar-induced photocatalytic degradation of reactive red (RR) and reactive turquoise (RT) dyes in a single system using TiO2 immobilized in xanthan gum (TiO2/XG), synthesized using the sol–gel dip-coating technique for direct precipitation. SEM-EDX, XRD, FTIR, and UV–Vis were used to assess the characteristics of the resulting catalyst. Moreover, the effects of different operating parameters, specifically pH, dye concentration, TiO2/XG concentration, H2O2 concentration, and contact time, were also investigated in a batch photocatalytic reactor. The immobilized TiO2/XG catalyst showed a slight adsorption degradation efficiency and then improved the RR and RT dye degradation activity (92.5 and 90.8% in 120 min) under solar light with a remarkable Langmuir–Hinshelwood pseudo-first-order degradation rate of 0.0183 and 0.0151 min−1, respectively, under optimum conditions of pH 5, dye concentration of 25 mg/L, TiO2/XG concentration of 25 mg/L, H2O2 concentration of 400 mg/L, and reaction time of 120 min. The improved photocatalytic ability was ascribed to the impact of TiO2/XG nanoparticles with a high surface area, and lower band gap energy. Solar light energy has significant potential for addressing energy deficit and water pollution concerns.