This chapter is focused on the most important process in the biosphere, primary production, the turning of carbon dioxide into organic material by higher plants, algae, and cyanobacteria. Photosynthetic microbes account for roughly 50% of global primary production while the other half is by large, terrestrial plants. After reviewing the basic physiology of photosynthesis, the chapter discusses approaches to measuring gross and net primary production and how these processes affect fluxes of oxygen and carbon dioxide into and out of aquatic ecosystems. It then points out that terrestrial plants have high biomass but relatively low growth, while the opposite is the case for aquatic algae and cyanobacteria. Primary production varies greatly with the seasons in temperate ecosystems, punctuated by the spring bloom when the biomass of one algal type, diatoms, reaches a maximum. Other abundant algal types include coccolithophorids in the oceans and filamentous cyanobacteria in freshwaters. After the bloom, small algae take over and out-compete larger forms for limiting nutrients because of superior uptake kinetics. Abundant types of small algae include two coccoid cyanobacteria, Synechococcus and Prochlorococcus, the latter said to be the most abundant photoautotroph on the planet because of its large numbers in oligotrophic oceans. Other algae, often dinoflagellates, are toxic. Many algae can also graze on other microbes, probably to obtain limiting nitrogen or phosphorus. Still other microbes are mainly heterotrophic but are capable of harvesting light energy. Primary production in oxic environments is carried out by oxygenic photosynthetic organisms, whereas in anoxic environments with sufficient light, it is anaerobic anoxygenic photosynthesis in which oxygen is not produced. Although its contribution to global primary production is small, anoxygenic photosynthesis helps us understand the biophysics and biochemistry of photosynthesis and its evolution on early Earth. These microbes as well as aerobic phototrophic and heterotrophic microbes make up microbial mats. These mats can provide insights into early life on the planet when a type of mat, “stromatolites,” covered vast areas of primordial seas in the Proterozoic.