When carbon dioxide comes inside the leaves from their stomata then water and carbon dioxide combine and form a six-carbon compound having six oxygen and twelve hydrogen compound as well. This process is called photosynthesis. The glucose formed in this process is used by plant and animal too. So this process is necessary for life on this earth.