Heterocysts, sites of nitrogen fixation in certain filamentous cyanobacteria, are limited to a heterotrophic metabolism, rather than the photoautotrophic metabolism characteristic of cyanobacterial vegetative cells. The metabolic route of carbon catabolism in the supply of reductant to nitrogenase and for respiratory electron transport in heterocysts is unresolved. The gene (zwf) encoding glucose-6-phosphate dehydrogenase (G6PD), the initial enzyme of the oxidative pentose phosphate pathway, was inactivated in the heterocyst-forming, facultatively heterotrophic cyanobacterium, Nostoc sp. strain ATCC 29133. The zwf mutant strain had less than 5% of the wild-type apparent G6PD activity, while retaining wild-type rates of photoautotrophic growth with NH 4 ؉ and of dark O 2 uptake, but it failed to grow either under N 2 -fixing conditions or in the dark with organic carbon sources. A wild-type copy of zwf in trans in the zwf mutant strain restored only 25% of the G6PD specific activity, but the defective N 2 fixation and dark growth phenotypes were nearly completely complemented. Transcript analysis established that zwf is in an operon also containing genes encoding two other enzymes of the oxidative pentose phosphate cycle, fructose-1,6-bisphosphatase and transaldolase, as well as a previously undescribed gene (designated opcA) that is cotranscribed with zwf. Inactivation of opcA yielded a growth phenotype identical to that of the zwf mutant, including a 98% decrease, relative to the wild type, in apparent G6PD specific activity. The growth phenotype and lesion in G6PD activity in the opcA mutant were complemented in trans with a wild-type copy of opcA. In addition, placement in trans of a multicopy plasmid containing the wild-type copies of both zwf and opcA in the zwf mutant resulted in an approximately 20-fold stimulation of G6PD activity, relative to the wild type, complete restoration of nitrogenase activity, and a slight stimulation of N 2 -dependent photoautotrophic growth and fructose-supported dark growth. These results unequivocally establish that G6PD, and most likely the oxidative pentose phosphate pathway, represents the essential catabolic route for providing reductant for nitrogen fixation and respiration in differentiated heterocysts and for dark growth of vegetative cells. Moreover, the opcA gene product is involved by an as yet unknown mechanism in G6PD synthesis or catalytic activity.Cyanobacteria are a morphologically diverse but phylogenetically cohesive group of gram-negative eubacteria that are phenotypically united by their oxygen-evolving photosynthetic mechanism. All cyanobacteria are photoautotrophic, using ATP and NADPH generated in the light reactions for autotrophic CO 2 assimilation by enzymes of the Calvin-Benson, or reductive pentose phosphate, cycle. They synthesize glycogen as the storage material in the light, and this glycogen is subsequently catabolized to provide maintenance energy during the dark periods of natural day-night cycles.The vegetative cells of many filamentous cya...