Photosynthesis maintains the level of oxygen in the atmosphere and provides energy to all life forms—either directly (for the plants themselves) or indirectly (as the food source for organisms that consume the plants, and, ultimately the organisms that consume them).