We report the synthesis of TiO2 and Fe2O3 electrodes using the co-precipitation method. Fe2O3 was incorporated with mesoporous TiO2 over compact TiO2 thin films. The films were deposited onto FTO substrates via spin coating approach. We have investigated the effect of variation of spin coating sets. The x-ray diffraction studies show that the micro-strain and dislocation density increases with increase in spin coating cycles. From optical studies using ultraviolet-visible absorption spectroscopy and time-resolved photoluminescence spectroscopy, it is observed that absorbance shifts towards longer wavelengths with increase in charge carrier lifetime. UV-Visible spectroscopy reveals that Urbach energy increases with change in number of deposition cycles. Also results indicate that surge in the spin coating sets leads to a decrease in pore size. Morphological and elemental analysis from scanning electron microscopy revealed a rise in orderly arrangement in TiO2-Fe2O3 than bare TiO2. The electrode when used as a photoanode, has shown an increase in short circuit current density and open-circuit voltage of the device with increment in deposition cycles, with short-circuit current density (Jsc) of 6 × 10⁻5 A, an open-circuit voltage (Voc) of 0.17 V.