This study provides hydrogen gas fuel as a renewable energy source. The production of H 2 was carried out through the photocatalytic decomposition of sewage water using highly efficient poly(m-toluidine) (PMT)/rolled graphene oxide (roll-GO) as photoelectrode. The preparation of PMT thin film was carried out on glass using the in situ electropolymerization reaction from an acid medium. Then, the roll-GO was deposited on this thin film using the casting method from the GO solution. The full characteristic analyses Fouriertransform infrared, X-ray diffraction, scanning electron microscope, transmitted electron microscope, and UV-Vis spectroscopy confirmed the chemical structural, morphological, and optical properties of the prepared nanomaterials. The morphology characteristic confirmed the formation of nanopores PMT, rolled GO, and rolled porous nanocomposite. The bandgap values for PMT, roll-GO, and PMT/roll-GO nanomaterials were 2.38, 2.67, and 1.65 eV, respectively. The hydrogen generation was carried out through the photoelectrode glass/PMT/roll-GO with a current density (J ph ) value of 0.08 mA.cm À2 at +1 V, with hydrogen moles of 10 μmole/h.cm À2 . The J ph values changed from 0.078 to 0.053 mA.cm À2 with changing the monochromatic light wavelengths from 390 to 636 nm, respectively. Moreover, the J ph values increased from 0.078 to 0.295 mA.cm À2 which is followed by an increase in the temperature from 20 C to 60 C, respectively. The thermodynamic parameters were calculated, in which the Ea, ΔS*, and ΔH* values were