Electromagnetic energy can be converted to the chemical energy stored in plants through photosynthesis, the process by which plants and algae use the sun’s radiation to turn carbon dioxide gas into sugar and carbohydrates.