The process of photosynthesis is carried out by many organisms on the planet, ranging
from trees and plants to bacteria. Photosynthesis as people typically think of it is carried out by higher plants and algae. Cyanobacteria and their relatives are also photosynthetic and are responsible for most of the photosynthesis in our oceans.
The process of photosynthesis converts CO2 (carbon dioxide) to organic material by reducing this gas to carbohydrates in a complex set of reactions. Electrons for this reduction reaction ultimately come from water, which is then converted to oxygen and protons.
All the oxygen in Earth's atmosphere is believed to have come from photosynthesis. All respiring plants and animals use the oxygen and
produce CO2. Photosynthesis and respiration are similar in that both processes are dependant on the others product. On a global scale, about a trillion kg of dry organic matter is produced by photosynthesis per day, and likewise, the respiratory processes of the Earth's inhabitants convert about the same amount of organic matter to CO2. The vast majority of this process happens in our oceans mostly by oxygenic procaryotes (bacterium or a blue-green alga).
Without plants, from alga to the trees in the rainforests, there is no photosynthesis. Without photosynthesis, the oxygen in the atmosphere would be gone in a few thousand years. Without oxygen . . .