Marine primary production is the chemical synthesis in the ocean of organic compounds from atmospheric or dissolved carbon dioxide. It principally occurs through the process of photosynthesis, which uses light as its source of energy, but it also occurs through chemosynthesis, which uses the oxidation or reduction of inorganic chemical compounds as its source of energy. Almost all life on Earth relies directly or indirectly on primary production. The organisms responsible for primary production are called primary producers or autotrophs.
Most marine primary production is generated by a diverse collection of marine microorganisms called algae and cyanobacteria. Together these form the principal primary producers at the base of the ocean food chain and produce half of the world's oxygen. Marine primary producers underpin almost all marine animal life by generating nearly all of the oxygen and food marine animals need to exist. Some marine primary producers are also ecosystem engineers which change the environment and provide habitats for other marine life.