Chloroplast uses the energy from the sun to carry out the process of photosynthesis. Chloroplast contains a pigment known as chlorophyll and it is chlorophyll that carries out this process. Plants that do not contain chlorophyll are unable to photosynthesize. During this process, plants consume carbon dioxide and water and convert sunlight energy into chemical energy (of glucose molecules) along with release of oxygen. Chemically, it can be written as:
``6 CO2 + 6 H2O + sunlight -> C6H12O6 + 6 O2
The process of photosynthesis is responsible for maintaining carbon dioxide concentration in our atmosphere, without which we will experience pronounced global warming. Photosynthesis is also responsible for providing us oxygen, which is the primary component of aerobic respiration. It is also the process that generates food for other life forms.
Hope this helps.