Water pollution caused by the dye industry is a major environmental concern, particularly in regions where textile and dye production are prevalent. Wastewater from dyeing operations is typically characterized by high concentrations of dyes, salts, heavy metals, and other harmful chemicals, making it highly toxic to aquatic ecosystems and human health. Our work deals with the minimization of two commonly used dyes. First is Congo Red, despite its popularity in industrial applications, Congo Red is known for its toxicological and environmental risks, particularly in water pollution. Congo Red (CR) and Rose Bengal (RB) in water bodies can cause significant contamination due to their persistence and difficulty in degradation. These organic contaminants (dye) are carcinogenic and mutagenic, posing potential risks to both aquatic organisms and humans. Also, it has low lipid solubility, which can limit its ability to cross cell membranes and accumulate in tumors. Newly synthesised of ruthenium-doped titanium dioxide nanoparticles have been successfully obtained and demonstrated to be extremely efficient photocatalysts for the photodegradation of dye wastes in water samples. This study employs a sol–gel route, which provides fine control over particle size, dopant dispersion, and material uniformity, all while operating under mild conditions and avoiding the use of harmful substances. A variety of features confirm the production of Ru@TiO2. Analyses are performed using XRD, FTIR, SEM–EDS, and HR-TEM to understand the composition of the composite. The photocatalytic effectiveness of Ru@TiO2 photocatalyst is measured using various factors such as pH, contact time, photocatalyst dose, and dye concentration. Ru@TiO2 is an excellent photocatalyst for dye degradation from wastewater under optimal conditions, with 94 and 96% elimination of CR and RB, respectively, within 100 min of reaction time. In addition, more than 92.0% of total organic carbon was eliminated. Furthermore, the reusability test demonstrated the extraordinary stability of Ru@TiO2 after five cycles, with just a tiny decrease ( < 16%) in dye degradation efficiency.