To produce hydrogen using sunlight, the energy obtained from light must be retained until it can be used in a chemical reaction. However, if an electron that has gained energy from light quickly returns to its original position, it becomes difficult to make use of that energy.