Photosynthesis is a mysterious mechanism in plants and is how they produce sustenance. Plants, like us, require something special to help them develop and have energy, particularly sunlight.
Plants have tiny sections called leaves, which contain little green stuff called chlorophyll. Consider chlorophyll to be the plant's superpower. When the sun shines on the leaves, the chlorophyll excites and does incredible things. It absorbs carbon dioxide from the air (humans expel it) and water from the ground, then combines the two using sunlight.
When these substances combine, they produce sustenance for the plant, known as glucose. This glucose gives the plant the energy to grow, blossom, and produce fruits. Furthermore, the plant emits oxygen into the air, which is critical for us and other animals to breathe.