This is thanks to microscopic marine plants called phytoplankton, which use photosynthesis to produce oxygen. While rainforests are often credited with producing most of Earth's oxygen, the ocean plays a vital role in supplying the atmosphere with this essential gas.