Photosynthesis is the process by which plants and other things make food.It is a chemical process that uses sunlight to turn carbon dioxide into sugars and the plant cell can use as energy(or as food for plants also animals can use it). Not only plants, but many kinds of algae, protists and bacteria use it to get food. Photosynthesis is very important for life on Earth. Most plants either directly or indirectly depend on it.
if you wan you can look into this chemical reaction which is occurring during photosynthesis: 6 CO2(g) + 6 H2O + photons(means light) → C6H12O6(aq) + 6 O2(g) carbon dioxide + water + light energy → glucose + oxygen