Green hydrogen production from solar water splitting has attracted a great deal of interest in recent years because hydrogen is a fuel of high energy density. A research team discovered the quantum confinement effect in a photocatalyst of a 3D-ordered macroporous structure. The quantum confinement effect was found to enable hydrogen production under visible light. The findings offer an option for addressing energy and environmental challenges.