Photosynthesis is the process in which energy- from the sunlight- is used to create glucose.
Light energy is absorbed by chlorophyll in plants leaves. It is then used to convert carbon dioxide (from the air) and water (from the ground) into glucose; which is used for respiration. Oxygen is a by-product of this process.
This is using light energy, from the sun, to create chemical energy (glucose); which conserves the energy from the sun. This energy is then passed through the food chain, which is why plants are called the producer (producing the chemical energy in the chain from the sun light.)