The secrets of photosynthesis are unlocked to make new solar cells, storage devices or even engines.