The primary purpose of photosynthesis is:
d. to make sugars and store energy.
Photosynthesis is the process by which green plants, algae, and some bacteria convert light energy, usually from the sun, into chemical energy in the form of glucose (sugar), which can be used as food for growth and energy storage.