What drives all ecosystems is the primary production. Primary production is the production of organic matter from inorganic carbon sources. This happens through photosynthesis. It drives the carbon cycle, which influences global climate via the greenhouse effect.