Photosynthesis helps to keep an ecosystem balanced by providing energy and nutrients to other organisms, which is essential for maintaining the ecosystem's energy and material flows. The process also plays a critical role in the Earth's carbon cycle, which is an important part of the Earth system model (ESM). During photosynthesis, plants absorb carbon dioxide from the atmosphere, which helps to regulate the level of carbon dioxide in the atmosphere and prevent global warming.