Energy and the environment are very important issues to secure, preserve and improve our modern lifestyle. The conversion of sunlight into hydrogen and oxygen via photoelectrochemical (PEC) water splitting is one of the most potential routes for clean energy. Cadmium sulfide (CdS) is a promising semiconductor for utilization as a photoanode. In this work, CdS has been grown via the hydrothermal method by optimizing the thiourea concentration. The growth of CdS with equal concentration of Cd2+ and S2-demonstrates the crowded hexagonal-shaped nanorod arrays with small diameter and relatively longer length, and it exhibits the highest photocurrent density due to some factors, such as high length-to-diameter ratio, large reaction area, suitable flat band potential, slow charge recombination rate, fast charge transfer, suitable conduction and valence band edges, and surface reaction kinetics. This work will be of potential to further develop improved nanocomposites of CdS nanorods for hydrogen production and research in related fields.