In this study, titanium dioxide nanotubes co-doped by tungsten and sulfur were prepared via electrochemical oxidation method. Titanium anodizing process was performed in electrolyte containing certain amounts of tungsten and sulfur salts, 1 mililiter of water, 2 mililiters of hydrofluoric acid and 97 cc of DMSO at room temperature, at a constant voltage of 40 volts for 8 hours. FE-SEM analysis was used to study the morphology of the synthesized nanophotocatalysts and the images clearly showed that the nanotubes had grown in one direction and in a regular manner. EDX-Mapping analyzes indicated that the elements were present on the surface of nanotubes and were evenly distributed on the surface of the nanotubes. X-ray diffraction analysis was used to specify the type of crystal structure and identify the existing phases. As a result, it was determined that the crystalline phase of titanium dioxide anatase as well as the identifier peaks of the compounds including doping elements, are also present in these diagram. UV-Visible spectroscopy analysis was used to evaluate the optical characteristics and changes in the bandgaps of pure TiO 2 and doped TiO 2 samples. It was found that by shifting the absorption wavelengths to higher wavelengths, the energy gap has decreased and is in the range of visible light. Following the project investigated the photocatalytic properties of the samples by analyzing LSV, CA, and OCP of a potentiostat and a three-electrode system, including working, auxiliary, and reference electrodes. The prepared photoelectrodes placed in the photoelectrochemical cell as the working electrode, the platinum electrode as the auxiliary electrode, and the silver/silver chloride electrode as the reference electrode in a quartz cell that fulled via 100ml of 0.1 mM Sodium Sulfide + 0.2 mM Sodium Hydroxide was attached to a 100ml solution of a 3.5 weight percent solution of Sodium Chloride salt. The 35-watt xenon lamp was used as a light source to simulate sunlight. The optimum samples were determined via the cathodic protection method using the Tafel test and Fluorescence analyse to prevent corrosion of stainless steel 304.