Researchers have developed innovative hydrogels that mimic photosynthesis to produce hydrogen from sunlight and water.