N2 fixation is an extremely Oj-sensitive process. N,-fixing bacteria (diazotrophs) have therefore evolved a variety of strategies by which they maintain an active nitrogenase in the presence of atmospheric Oj and, in some cases, of Og generated photosynthetically. In this review, the effects of O.^ on nitrogenase activity and synthesis are described, as are the mechanisms by which diazotrophs limit O,, damage to nitrogenase. These mechanisms are classified as behavioural strategies, physical barriers or physiological and biochemical strategies. Individual diazotrophs frequently employ a combination of these. In addition, the particular problems faced by the O.^evolving cyanobacteria are discussed.