Main

Anoxygenic photoautotrophic Fe(II)-oxidizing bacteria, or ‘photoferrotrophs’ (whose action is shown in equation (1)), are thought to have thrived in Earth’s oceans before the rise in O2 and contributed to the deposition of banded iron formations (BIFs)1,2,3. As O2 began to rise, these microbes would have seen their habitats shrink, yet they are still thought to have been capable of out-competing abiotic Fe(II) oxidation by O2 or respiration by microaerophilic Fe(II) oxidizers while the oxycline remained in the photic zone4, that is, when photons () could reach deeper anoxic waters.

$${{{\mathrm{HCO}}}}_{3}^{-}+4{{{\mathrm{Fe}}}}^{2+}+10{{\mathrm{H}}}_{2}{\mathrm{O}}\mathop{\to }\limits^{h\nu }\left\langle {{{\mathrm{CH}}}}_{2}{\mathrm{O}}\right\rangle +4{{\mathrm{Fe}}}\left({{\mathrm{OH}}}\right)_{3}+7{{\mathrm{H}}}^{+}$$
(1)

However, the rise in O2 would also have shifted the balance of other biogeochemical cycles towards more oxidized states. Specifically, an increased abundance of nitrate (NO3) led to pervasive denitrification in stratified water columns during the Great Oxidation Event (GOE)5 that began circa 2.45 billion years ago (Ga). Even before the GOE, evidence exists for transient, localized cycling of oxidized nitrogen species associated with areas of locally elevated O2 (oxygen oases) from 2.7 Ga (ref. 6) (with some estimates as early as 2.9 Ga (ref. 7)), although there is some debate regarding whether the δ15N record could reflect other nitrogen cycling processes independent of oxidative nitrogen cycling before 2.3 Ga (refs. 5,6,8,9,10). The input of NOx (nitrogen oxides) from atmospheric photochemical reactions would also have supplied oxidized nitrogen species to the oceans as far back as the Hadean11,12,13; with potential for nitrite (NO2) to be abiotically reduced to nitric oxide (NO) and nitrous oxide (N2O) via abiotic mineral-catalysed reactions14.

In modern anoxic environments that contain both Fe(II) and NO3, NO3 reduction coupled with Fe(II) oxidation (equation (2)) is widespread15. During this process, Fe(II) oxidation can be enzymatically driven16,17 and/or occur abiotically via chemodenitrification18, which is catalysed by reactive nitrogen intermediates, such as NO2 and NO, produced during the enzymatic reduction of NO3. In modern environments, such as sediments19,20,21,22 and stratified water columns23, both nitrate-reducing and phototrophic Fe(II) oxidizers have been found together. Oxidation of Fe(II) coupled with NO3 reduction could, therefore, compete with photoferrotrophs for Fe(II) in regions where NO3 and light were available but O2 was absent.

$$10{{{\mathrm{Fe}}}}^{2+}+2{{{\mathrm{NO}}}}_{3}^{-}+24{{\mathrm{H}}}_{2}{\mathrm{O}}\to 10{{\mathrm{Fe}}}\left({{\mathrm{OH}}}\right)_{3}+{{\mathrm{N}}}_{2}+18{{\mathrm{H}}}^{+}$$
(2)

Nitrate-reducing Fe(II) oxidation inhibits photoferrotrophy

To observe potential competitive interactions we co-cultured model strains of nitrate-reducing and phototrophic Fe(II)-oxidizing bacteria and compared the rates of cell growth, Fe(II) oxidation, NO3 reduction and N2O formation in the mixed culture with those grown alone. The model Fe(II) oxidizer used was the enrichment culture KS (a mixed culture that consists of a dominant Fe(II) oxidizer of the family Gallionellaceae, with a flanking community of heterotrophs including Bradyrhizobium, Rhodanobacter, Nocardioides and Thiobacillus), whereas the model photoferrotroph was the purple non-sulfur bacterium Rhodobacter ferrooxidans strain SW2. In all cases, CO2 for autotrophic growth was provided in excess for both organisms. When the photoferrotroph R. ferrooxidans SW2 was incubated alone with 1 mM NO3 and 10 mM Fe(II) in the presence of light, Fe(II) oxidation was complete after 28 days and NO3 was not consumed (Fig. 1a,b). The KS culture incubated under the same conditions reduced all available NO3 (1 mM) over approximately four days and oxidized 5 mM of the Fe(II) (Fig. 1a,b; equation (2)). When the KS culture and photoferrotroph SW2 were incubated together, NO3 was completely reduced but Fe(II) oxidation stopped after the consumption of approximately 4–5 mM of the Fe(II) (Fig. 1a,b). The remaining Fe(II) (5 mM) was not consumed, suggesting inhibition of the photoferrotroph in the presence of the NO3 reducer KS. The inhibition of R. ferrooxidans SW2 was reflected in the cell numbers (Fig. 1c). A maximum of 108 cells per ml was measured when R. ferrooxidans SW2 was incubated alone. Conversely, when incubated in the presence of KS, the total cell count was one order of magnitude lower. The patterns of NO3 reduction, cell growth and Fe(II) oxidation were almost identical in the mixed culture and when KS was incubated alone, with similar trends also observed at lower NO3 concentrations (Extended Data Fig. 1). Indeed, the KS and mixed KS–R. ferrooxidans SW2 incubations were so similar that Mössbauer spectra of the minerals formed are indistinguishable (Supplementary Fig. 1). We interpret these data as suggesting that the photoferrotroph did not grow in the mixed culture and that cell lysis was probably enhanced by the presence of KS.

Fig. 1: Fe(II) oxidation and nitrate reduction in the KS culture alone, R. ferrooxidans SW2 alone and in a mixed culture containing both KS and R. ferrooxidans SW2.
Fig. 1: Fe(II) oxidation and nitrate reduction in the KS culture alone, R. ferrooxidans SW2 alone and in a mixed culture containing both KS and R. ferrooxidans SW2.The alternative text for this image may have been generated using AI.
Full size image

Aqueous- and gas-phase time-series measured (m) and simulated (s) concentration data for the phototrophic oxidation of Fe(II) by R. ferrooxidans SW2, the nitrate-dependent oxidation of Fe(II) by KS and in the incubation containing a mixture of KS and R. ferrooxidans SW2. a, Fe(II) oxidation. b, NO3 reduction. c, Total cell number measured via flow cytometry. d, Predicted aqueous concentrations of NO and N2O. e, Predicted versus measured NO partial pressure in culture KS performed during a parallel incubation (measured shown by square symbols). f, Predicted and measured N2O partial pressures. Gaseous reactive intermediates NO and N2O were present only in the KS and mixed KS–R. ferrooxidans SW2 incubations. In a and c, the dashed black lines illustrate, respectively, the expected Fe(II) and biomass growth in the absence of NO toxicity (unaffected). Data are presented as the mean ± s.d. of biological triplicates.

The culture KS, which demonstrates faster Fe(II) oxidation than R. ferrooxidans SW2, will kinetically outcompete R. ferrooxidans SW2 when Fe(II) is limited, but in this situation, where Fe(II) is in excess of what can be oxidized by the available NO3, another explanation is necessary. We evaluated whether inhibition required live and actively metabolizing KS cells, by comparing Fe(II) oxidation in the mixed culture when either live or dead (that is, autoclaved) KS cells were added (Supplementary Fig. 2). We also added a spent, filtered culture KS supernatant to an R. ferrooxidans SW2 culture to test whether the inhibitor had been introduced during inoculation (Supplementary Fig. 2). Combined, these experiments demonstrated that the KS culture needed to be alive and actively reducing NO3 for inhibition to occur, suggesting that something produced during denitrification was responsible for the inhibition. The reactive intermediates NO2, NO and N2O can all be potential toxins produced during denitrification24. However, by conducting an additional experiment where the headspace of the reactor was flushed after every sampling point, we confirmed that the inhibitor must be a highly volatile nitrogen intermediate (Fig. 2). Although we did not measure N2O or NO after this headspace exchange, the flushing of the headspace led to uninhibited growth in the mixed culture (Fig. 2). As the flushing of the headspace cannot provide any additional NO3 (the ultimate limiting factor for the NO3 reducers when both Fe(II) and CO2 are present in excess), enhanced cell numbers and further Fe(II) oxidation compared with the control where the headspace was not exchanged can only be explained by recovery of the photoferrotrophic community.

Fig. 2: Cell numbers measured using flow cytometry in incubations that contain both KS and R. ferrooxidans SW2.
Fig. 2: Cell numbers measured using flow cytometry in incubations that contain both KS and R. ferrooxidans SW2.The alternative text for this image may have been generated using AI.
Full size image

In a KS and R. ferrooxidans SW2 mixed incubation, exchange of the headspace after each sampling point results in alleviation of the inhibition of phototrophic Fe(II)-oxidizers. Orange symbols denote data for which the headspace was exchanged with a N2/CO2 gas mixture after sampling, whereas blue symbols indicate no headspace exchange during the experiment. As the biomass in the KS culture is dictated by the NO3 added, any cell growth above what can be explained by the KS culture can only be attributed to the growth of R. ferrooxidans SW2. Data are presented as the mean ± s.d. of biological triplicates. Dashed lines are to guide the eye and do not represent model fits.

Recent isotope-labelling experiments demonstrated that KS produces N2O during denitrification25. Consistent with this, our experiments showed increasing concentrations of the denitrification intermediate N2O during NO3 reduction, which plateaued after the sixth day in both the KS and KS–R. ferrooxidans SW2 incubation experiments (with a slight subsequent dilution due to ongoing sampling) (Fig. 1f). In a parallel incubation inoculated only with KS, and conducted under the same conditions, we observed that NO was also produced (in addition to N2O) shortly after the onset of the experiment and persisted in the system over several days, albeit at nanomolar aqueous concentrations, before being consumed (Fig. 1d,e). We did not observe any appreciable amount of NO2 accumulation in any of the reactors, implying the efficient conversion of NO2 to NO.

We tested directly whether N2O and NO can inhibit the oxidation of Fe(II) by R. ferrooxidans SW2. We did not observe any inhibition by N2O, even at concentrations higher than those observed in Fig. 1 (up to an aqueous N2O concentration of 90 µM; Extended Data Fig. 2). When R. ferrooxidans SW2 was incubated with different concentrations of NO in the range of 12 nM to 24.8 µM, slower Fe(II) oxidation was seen at all concentrations, although all Fe(II) was eventually oxidized in concentrations up to 2.5 µM (Extended Data Fig. 3). No Fe(II) oxidation was observed at 6.2 µM. At the NO concentration of 3.7 µM, Fe(II) oxidation occurred in two of the replicates but not in the third, suggesting that the threshold may be closer to this value. We conclude from this that NO has a limiting effect on photoferrotrophy, even at very low nanomolar concentrations, although longer-term exposure may be required to induce complete inhibition at these low concentrations. This explains why recovery of the photoferrotroph cells is not observed in the mixed cultures within the time period of the experiment, whereas in the flushing experiments shown in Fig. 2 (where NO is not allowed to accumulate for any period of time) the community can recover. However, it should be noted that, even a single exposure to low nanomolar concentrations of NO can completely inhibit photoferrotrophs.

We used a numerical model to assess the feasibility of our hypothesis that the NO produced during denitrification was responsible for the observed inhibition of the photoferrotrophs (Fig. 1). When NO toxicity was considered as an inhibitor of photoferrotrophy, via enhanced cell lysis in the presence of NO, we accurately captured the measured growth and Fe(II) dynamics. In the absence of NO toxicity effects (Fig. 1a,c, indicated by the ‘unaffected’ dotted line), the model overestimated both biomass growth and the extent of Fe(II) oxidation. Our model predicts that NO toxicity leads to a rapid decay in photoferrotrophic cell numbers over the first five days of the experiment while KS is actively growing, followed by a slow rebound over 30 days or more (Supplementary Fig. 3).

Potential ubiquity of inhibitory effect

If the inhibition effect observed during co-culturing with the KS–R. ferrooxidans SW2 mixture is caused by the production of NO as we suggest, the effect will not be unique to culture KS and will also be observed in other reactions between Fe(II) and nitrogen species. We further investigated the effect of microbially catalysed chemodenitrification using Acidovorax sp. BoFeN1, and entirely abiotic Fe(II) oxidation with NO2 (Extended Data Figs. 4 and 5 and Supplementary Results 1), and show that both lead to inhibition of the photoferrotroph R. ferrooxidans SW2. In all cases, the inhibition can be best explained by the production of highly toxic NO as an intermediate of denitrification under ferruginous conditions (Fig. 3).

Fig. 3: Schematic of NO production and phototroph inhibition by NO via three mechanisms of nitrate-reducing Fe(II) oxidation.
Fig. 3: Schematic of NO production and phototroph inhibition by NO via three mechanisms of nitrate-reducing Fe(II) oxidation.The alternative text for this image may have been generated using AI.
Full size image

a, The Fe(II) oxidizer of culture KS (Gallionella) produces NO via denitrification coupled with enzymatic Fe(II) oxidation. Some NO may be scavenged by the heterotrophic partner strains (dominated by Bradyrhizobium), although this is probably limited by carbon availability. Remaining NO could interact with the phototroph causing inhibition. It is also possible that some NO reacts with Fe(II) abiotically in this scenario. The measured NO concentrations reflect the balance of these competing production and consumption pathways. Importantly, our model does not simulate the individual contribution of the components of the KS culture but models the culture as a whole. Corg, organic carbon. b, Fe(II) oxidation by Acidovorax sp. BoFeN1 produces NO2 during heterotrophic denitrification, which oxidizes Fe(II) abiotically and produces NO. c, Nitrite reacts abiotically with Fe(II) and produces NO. In all cases, the NO produced inhibits photoferrotrophic activity.

Furthermore, we tested whether inhibition of Fe(II) oxidation occurs when an alternative freshwater photoferrotroph, Chlorobium ferrooxidans strain KoFox, was incubated with culture KS. In this case, Fe(II) oxidation was delayed but not completely inhibited (Extended Data Fig. 6). We also observed that two marine photoferrotrophs (Chlorobium sp. N1 and Rhodovulum iodosum) were sensitive to abiotic chemodenitrification processes in the presence of Fe(II). Chlorobium sp. N1 oxidized Fe(II) in the presence of 2 and 10 µM of NO2 (to promote NO formation via abiotic reaction with Fe(II)) but not with NO2 at 20 µM; R. iodosum oxidized Fe(II) in the presence of 2 µM of NO2, but not with 10 or 20 µM (Extended Data Fig. 5). The Fe(II) oxidation mechanism in this case is of the type depicted in Fig. 3c. The sensitivity of these marine strains highlights that we also expect to observe a similar effect in the marine realm.

All of the strains tested have some genetic capability for tolerating NO. The photoferrotrophs C. ferrooxidans KoFox, Chlorobium sp. N1 and R. iodosum all possess the norV gene, encoding a flavorubredoxin which reduces NO for detoxification purposes26. R. ferrooxidans SW2 contains the norB gene, encoding the canonical NO reductase in the denitrification pathway. However, it is more likely that this canonical NO reductase has a detoxification role in strain SW2, which is incapable of denitrification (as demonstrated in Fig. 1). This suggests either that the possession of NO reduction genes, regardless of type, does not accurately predict the ability of a strain to tolerate NO or that the concentrations of NO produced in our experiments are outside the range in which NO can be efficiently detoxified.

Comparative genomic analysis of NO detoxification abilities across phototrophs (Supplementary Results 2) suggests that there are differences in genetic strategies for NO detoxification amongst different groups of phototrophs, and emphasizes that our cultured photoferrotrophs (Extended Data Fig. 7) are broadly representative of their respective groups. This implies that the inhibition we observe in culture is probably not limited to our tested strains but that all phototrophs may be vulnerable despite having some genetic ability to detoxify NO. In addition, the ubiquity of norV amongst the genomes of extant Cyanobacteria and Chlorobi species suggests that this gene may have evolved early in the history of these groups (Extended Data Fig. 7 and Supplementary Fig. 4).

Inhibition of photoferrotrophy in ancient oceans

Measured NO concentrations in modern ferruginous systems are highly variable but can reach up to 500 nM, for example, in anoxic sediments27,28. In these settings NO may be produced as a by-product of microbial denitrification or chemodenitrification but is also an intermediate of nitrification and ammonium oxidation29 (Fig. 4a). We demonstrated that NO concentrations during KS-mediated denitrification can accumulate up to 13 nM (Fig. 1), which is about 30-fold lower than the highest concentrations measured in some modern anoxic settings, and thus NO sensitivity can be expected at environmentally relevant concentrations (for an extended discussion see Supplementary Discussion 1).

Fig. 4: Microbial mechanisms of NO production and the proposed impact of nitrate-reducing Fe(II) oxidation on BIF formation.
Fig. 4: Microbial mechanisms of NO production and the proposed impact of nitrate-reducing Fe(II) oxidation on BIF formation.The alternative text for this image may have been generated using AI.
Full size image

a,b, Schematics demonstrating the variety of pathways in the nitrogen cycle that can lead to production of toxic NO (a) and the potential marginalization of photoferrotrophs by nitrate-reducing Fe(II) oxidizers in an early stratified continental shelf with cyanobacteria beginning to colonize benthic mats, produce O2 and enhance the availability of NO3 (b). The vertical scale of the shelf is exaggerated. DNRA, dissimilatory nitrate reduction to ammonium; anammox, anaerobic ammonium oxidation; Feammox, anaerobic ammonium oxidation coupled with Fe(III) reduction; NR FeOx, nitrate-reducing Fe(II)-oxidizing microorganisms.

Ferruginous environments were much more common in the Earth’s past, and thus the effects we report here were probably more important earlier in Earth’s history. The complete biological cycle of nitrogen fixation, nitrification and denitrification (including chemodenitrification) had probably evolved by the late Archaean or early Proterozoic8,9,30,31, although it is thought that up to 1013 grams of NO per year could have been produced by atmospheric photochemical reactions as far back as the Hadean32. The existence of microbially driven nitrate-reducing Fe(II) oxidation—which linked the iron and nitrogen biogeochemical cycles—is one possibility that has been evoked to explain the inverse co-variations between δ15N and δ13Ccarbonate isotopes recorded in the Brockman Iron Formation of the early Palaeoproterozoic in Western Australia6. In an alternative scenario, these authors propose that iron-driven chemodenitrification in a redox-stratified water column could drive the observed signatures. Furthermore, although inferred from mineralogical assemblages rather than direct from isotopic measures, NO3 reduction through organic carbon oxidation is thought to best explain the observed mineralogy and geochemistry in the ~2.9 Ga Nconga Iron Formation (Mozaan Group, South Africa), which would push the potential for nitrate-reducing Fe(II) oxidation (NRFO) back even further in time7. Our results demonstrate that nitrate-reducing Fe(II) oxidation could have the potential to inhibit the activity of photoferrotrophs in systems similar to those that produced the Brockman Iron Formation. Considering that photoferrotrophs are thought to have contributed to BIF formation as early as 3.77 Ga (refs. 33,34), and that NO3 was likely to be at least locally available as early as 2.7 Ga (ref. 9), there is a potentially long time frame from then until the onset of the GOE (2.45 Ga) within which photoferrotrophs could have encountered microbial or abiotic nitrate-reducing Fe(II) oxidation in the photic zone. On the basis of the ubiquity of photoferrotrophs for which NO is toxic, our findings imply, at the very least, that nitrate-reducing Fe(II) oxidation could have imposed a selection pressure on strains with detoxifying capabilities or provided an impetus to evolve NO detoxifying traits. At worst, nitrate-reducing Fe(II) oxidation could have created photoferrotroph exclusion zones in regions with elevated NO3 availability.

The potential marginalization of photoferrotrophs by nitrate-reducing Fe(II) oxidizers represents a previously unknown control on mechanisms of BIF deposition. As the marine photic zone became progressively oxygenated before the GOE, one of the immediate outcomes would have been the production of NO3 in marine settings with high primary productivity. This would have been followed by the proliferation of either chemodenitrification or enzymatic denitrification, with the two processes influencing photoferrotrophs via metabolic competition for Fe(II) as the electron donor, the production of NO as a toxin or a combination of the two. Under ferruginous conditions, dissimilatory nitrate reduction to ammonium would also probably have played a role that could counteract the toxicity effect through by-passing the intermediate steps in canonical denitrification. However, subsequent anaerobic oxidation of this ammonium (via Feammox) would produce NO2 as an intermediate, which could then interact with Fe(II) via chemodenitrification and produce NO (Fig. 4a).

In terms of BIF deposition, we envisage an Archaean ocean where photoferrotrophs were the primary biological driver of Fe(II) oxidation in the photic zone. However, as NO3 became more abundant and denitrification intensified, the photoferrotrophs would have been pushed further offshore, away from areas of peak primary productivity where cyanobacteria grew as mats35,36, and where O2 and oxidized nitrogen species were accumulating. Although the photoferrotrophs would still have had first access to upwelling Fe(II)4,37, they would have found themselves limited by other trace elements sourced from continental weathering. We hypothesize that nitrate-reducing Fe(II) oxidation could have plausibly compensated for much of the BIF deposition after photoferrotrophs became inhibited (Supplementary Discussion 2), although aerial expansion of cyanobacteria and oxygenation of the deep ocean would ultimately have resulted in the cessation of BIF.

Finally, as O2 increasingly diffused away from coastal environments, the oxic zone would have eventually intersected with the photic zone. As photoferrotrophs are obligate anaerobes, this O2 would have completely limited their ability to survive in the open oceans. Consequently, upwelling Fe(II) would no longer have been oxidized via photoferrotrophy. At this stage, Fe(II) oxidation would instead have been driven by microaerophilic chemolithoautotrophs (for example, Gallionella), nitrate-reducing Fe(II) oxidizers or abiotic Fe(II) oxidation with O2 or reactive nitrogen species.

In summary, our work demonstrates that NO produced by denitrifying bacteria can influence the survival of photoferrotrophs, and highlights that this toxicity would be enhanced under ferruginous conditions. The levels of NO required to inhibit photoferrotrophy are low and within the range observed in modern ferruginous environments, suggesting that NO stress could have played an important role in shaping the biogeochemistry and microbial community in both modern and ancient ferruginous habitats with an active nitrogen cycle. It is often thought that the main challenge for photoferrotrophs arose when O2 became more widespread. However, the introduction of reactive nitrogen species, such as NO2 and NO, into a ferruginous world would also have made photoferrotrophy difficult. Local enrichment of NO may have influenced biogeochemical cycling and, via inhibition of mineral precipitating phototrophs, fundamentally altered the mechanisms of BIF deposition, one of the main records of early ocean biogeochemistry itself.

Methods

Model strains

All experiments described in the main text were conducted using the autotrophic nitrate-reducing Fe(II)-oxidizing enrichment culture KS17 and the phototrophic Fe(II) oxidizer R. ferrooxidans SW238. Culture KS was enriched from a ditch in Bremen, Germany, and R. ferrooxidans SW2 was isolated from freshwater sediments in Hannover, Germany. Both cultures were maintained in continuous culture in the culture collection of A.K. The media recipes for other strains used can be found in Supplementary Table 2.

Cultivation

For cultivation of KS and R. ferrooxidans SW2, 22 mM bicarbonate-buffered mineral medium was used for all set-ups and contained KH2PO4 (0.6 g l−1), NH4Cl (0.3 g l−1), MgSO4·7H2O (0.025 g l−1), MgCl2·6H2O (0.4 g l−1) and CaCl2·2H2O (0.1 g l−1). After autoclaving in a Widdel flask the medium was cooled to room temperature under an N2/CO2 atmosphere (90:10) and buffered with anoxic 22 mM bicarbonate buffer. The CO2 concentrations in the final medium were in excess of the requirements for both the KS culture and the growth of R. ferrooxidans SW2. Aliquots (1 ml l−1) of sterile filtered seven-vitamin solution, trace element solution39 and selenite-tungstate solution40 were added and the pH was adjusted to 7 with 0.5 M NaHCO3 or 1 M HCl. The medium was stored at 5 °C. Before each experiment, the medium was aliquoted into sterile glass serum vials with a 50% headspace consisting of N2/CO2 gas (90:10) and amended with FeCl2·4H2O and NaNO3 as required. The pre-culture was always grown under Fe(II)-oxidizing conditions. In all cases, a 1% inoculum of both the KS and R. ferrooxidans SW2 pre-cultures was used, which equates to a starting cell concentration for KS of 1 × 106 ± 1 × 105 cells per ml and for R. ferrooxidans SW2 of 2 × 106 ± 1 × 106 cells per ml (although in a supplementary experiment we observed that inhibition of R. ferrooxidans SW2 was independent of the starting ratio of SW2:KS cells; Supplementary Fig. 5). Serum vials were placed in a light incubator with 24 h light that reached 23 ± 3 µmol m−2 s−1 (2,700 K) at 25 °C. The vial position was randomized after each sampling point to avoid enhancing any effects caused by incubator position. Medium recipes for the other strains tested (Acidovorax sp. BoFeN1, Chlorobium sp. N1 and R. iodosum) are shown in Supplementary Table 2.

Competition between KS and R. ferrooxidans SW2

To evaluate potential competitive effects between KS and R. ferrooxidans SW2, a sample of the medium (50 ml) was amended with 10 mM FeCl2 and 0.4 mM (scenario A) or 1 mM NaNO3 (scenario B). These concentrations are high compared with what is expected in modern or ancient environments but are a practical necessity to monitor the competitive dynamics. Three different conditions were tested: KS alone, R. ferrooxidans SW2 alone and KS and R. ferrooxidans SW2 grown together in the same vial. At every sampling time point, samples for gas analyses were collected under sterile conditions at the laboratory bench before samples for Fe, NO2, NO3 and cell counts were taken using an anoxic glovebox under a 100% N2 atmosphere.

Further control experiments

The potential for inhibition by the presence of KS biomass or a component from the supernatant was evaluated (Supplementary Fig. 2). For this, we repeated the experiment but inoculated additional triplicates with cells from an autoclaved pre-culture (121 °C, 20 mins) or with an equal volume of pre-culture supernatant that had been passed through a 0.22 µm filter. Samples for Fe, NO2, NO3, N2O and cell number were collected at every time point as described in the previous section.

Toxicity tests

To determine whether potentially toxic gaseous products were causing inhibition of R. ferrooxidans SW2 when grown in combination with KS, we prepared six vials as described in the experiment above with 10 mM FeCl2 and 1 mM NaNO3. Three vials were flushed with an N2/CO2 gas mixture for 5 min after every sampling time point or every other day. The remaining three vials did not have the headspace replenished at any point (Fig. 2).

The potential for N2O toxicity in R. ferrooxidans SW2 was tested by inoculation into different concentrations of N2O with 10 mM FeCl2 as the electron donor. These tests were performed in 15 ml Hungate tubes with medium (9 ml) and inoculum (1 ml) in triplicates. Fe(II) oxidation was monitored visually, with positive growth demonstrated by a colour change from grey to orange. The concentration range of N2O(aq) was from 0 to 90 µM (0, 9, 18, 45 and 90 µM) (Extended Data Fig. 2).

The potential for NO toxicity in R. ferrooxidans SW2 was tested by inoculation into different concentrations of NO in triplicate with 10 mM FeCl2 as the electron donor. Microbial Fe(II) oxidation was monitored over time via a colour change from grey to orange, with the extent of Fe(II) oxidation measured at the end of the experiment (time-course sampling was not conducted so as to avoid potential dilution of the NO added) (Extended Data Fig. 3).

Different concentrations of NO2 (0, 2, 10 and 20 µM) were tested in combination with 10 mM FeCl2, in duplicates, to determine the potential for NO2 toxicity. Microbial Fe(II) oxidation was indicated by a colour change from grey to orange. NO2 toxicity was tested for three phototrophic Fe(II) oxidizers in total: Rhodobacter ferrooxidans SW2, Rhodovulum iodosum and Chlorobium sp. strain N1 (Extended Data Fig. 5; see Supplementary Information for culture conditions for additional strains). The toxicity of NO2 in the absence of Fe(II) was determined by incubating R. ferrooxidans SW2 with acetate as an alternative growth substrate (Supplementary Fig. 6). Growth was monitored via the optical density at 660 nm in the presence of 0, 0.5 or 2 mM NaNO2.

Iron quantification

Iron (Fe(II) and Fe(III)) was quantified spectrophotometrically using the ferrozine assay of Stookey41. Owing to the potential presence of NO2, the protocol was modified and 1 M HCl was used together with 40 mM sulfamic acid18,42 to stabilize iron from abiotic reactions with nitrogen species. The Fe(III) data did not inform the results (although they did confirm that Fe(II) removal was as a result of oxidation and not, for example, sorption to the glass wall) and thus are not shown in the results. During sampling, the sample (0.1 ml) was added to a 0.9 ml aliquot of 40 mM sulfamic acid in 1 M HCl. Samples were stored at 5 °C until quantification. The ferrozine–Fe(II) complex was quantified at 562 nm using a microtitre plate reader (Multiskan GO, Thermo Fisher Scientific). Ferrozine measurements were conducted in triplicate.

Cell quantification

Cells were counted using a flow cytometer equipped with a 488 nm laser as the excitation source (Attune Nxt flow cytometer, Thermo Fisher Scientific). Samples for cell counts were directly processed after sampling. Sterile filtered oxalate solution (600 µl) was added to the sample (200 µl) and incubated for between 30 s and 1 min. A 1,200 µl aliquot of 10 mM sterile filtered bicarbonate buffer was added, and the mixture was centrifuged at 21,130g for 10 min. A portion of the supernatant (1,800 µl) was discarded and 10 mM sterile filtered bicarbonate buffer (600 µl) was added. BacLight Green stain (Thermo Fisher Scientific, 1 µl stain per ml of sample) was added and a 200 µl aliquot of the sample was distributed in triplicate in 96-well plates. The plate was incubated for 15 min in the dark before measurements were taken. Cells were distinguished from noise or debris on the basis of their properties in the side scatter and BL1 channel (with emission filter 530/30 nm). This method measures the total cell numbers and does not distinguish between different species.

N2O quantification

Samples were extracted from the headspace using a Hamilton syringe after each bottle was shaken and transferred into vials previously flushed with N2. The vials were stored at room temperature until further analysis. The analysis was performed using a gas chromatograph with a pulsed discharge detector (PDD). The temperature programme for the columns was: 10 min at 35 °C, heated at 50 °C min−1 until 120 °C and held at 120 °C for 1 min. This was repeated with heating at 50 °C min−1 until 150 °C and held at this temperature for 5 min. The valve furnace was set to 40 °C. The carrier gas flow was 5 ml min−1 and the run time was 18.3 min. The back PDD used a Mol Sieve 5A column (30 m × 0.53 mm (length × inner diameter, respectively)) and the front PDD used a TG BondQ+ column (30 m × 0.25 mm). The injection volume was 2 ml.

NO2 and NO3 quantification

Samples for NO2 and NO3 were taken using a glovebox, centrifuged at 21,130g for 5 min and then stored under anoxic conditions at 5 °C until measurement. Concentrations were quantified colorimetrically using a continuous-flow analyser (Seal Analytical). For details, see ref. 43.

NO monitoring

To determine whether NO accumulated during growth of the KS culture we conducted a parallel incubation with only KS inoculated in the reactor but under the same conditions as in the original experiment. This was necessary as the samples must be analysed as soon as possible after sampling and thus had to be conducted in the vicinity of the instrument, located at the University of Arizona where the culturing of anoxygenic phototrophs was not possible at the time. For this incubation, cells pre-grown with Fe(II) as an electron donor were transferred (0.5% inoculum) into reactors containing fresh medium with 10 mM FeCl2, 1 mM NaNO3 and a N2/CO2 (90:10) headspace. The cultures were incubated in the dark at 25 °C, and NO and N2O evolution was followed over time. NO was quantified in the microcosm headspace using a chemiluminescence-based analyser (LMA-3D NO2 analyser, Unisearch Associates). Headspace gas (50 µl) was sampled by replacement under sterile conditions using a CO2-N2-flushed gas-tight syringe and injected into the analyser. The injection port was customized to fit the injection volume and consisted of a T-junction with an air filter at one end and a septum at the other end. An internal pump generated a consistent airflow. Our method generally followed a previous protocol44 and included adjustments based on our experimental set-up. In short, NO was oxidized to NO2 using a CrO3 catalyst. The NO2 passed across a fabric wick saturated with a luminol solution (luminol was obtained from Drummond Technology). Readings were corrected for background NO2 every 15 min. The shell airflow rate was kept at 500 ml min−1 and the span potentiometer was set to 8. Measurements were calibrated using a 0.1 ppm NO (in N2) standard (<0.0005 ppm NO2, Scott-Marin) over a range of 50–10,000 ppb.

Mössbauer spectroscopy

Samples for 57Fe Mössbauer spectroscopy were prepared inside an anoxic (100% N2 atmosphere) glovebox by passing the sample through a 0.45 µm filter and sealing the filter paper between two pieces of airtight Kapton tape. The samples were stored in airtight (100% N2 atmosphere) bottles at −20 °C until analysis. The bottles were opened just before loading the samples inside a closed-cycle exchange gas cryostat (Janis Cryogenics) under a backflow of helium. Spectra were collected at 77 K with a constant acceleration drive system (WissEL) in transmission geometry with a 57Co/Rh source and calibrated against a 7-µm-thick α-57Fe foil measured at room temperature. All spectra were fitted applying a Voigt-based fitting routine45 using Recoil software (University of Ottawa)45. The half-width at half-maximum (HWHM) was fixed at 0.13 mm s−1 for all samples.

Reaction model

Incubation reactors for all experimental treatments, photoferrotrophy by R. ferrooxidans SW2, photoferrotrophy and nitrate-reducing Fe(II) oxidation (R. ferrooxidans SW2 plus KS) and KS-mediated nitrate-reducing Fe(II) oxidation were all simulated as well-mixed batch reactors. The model variants simulate microbially mediated reactions considering Monod kinetics that explicitly account for biomass.

The growth rate of R. ferrooxidans SW2 (rSW2) during photoferrotrophy, in the presence of a continuous light source, was modelled via a single Monod rate expression (equation (3)):

$${r}_{{{\mathrm{SW}}}2}={\mu }_{\max }^{{{\mathrm{ph}}}}\left(\frac{{C}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}}{{C}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}+{K}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}^{{{\mathrm{ph}}}}}\right){X}_{{{\mathrm{SW}}}2}$$
(3)

where \({\mu }_{\max }^{{\mathrm{ph}}}\) (per day) is the maximum specific growth rate constant for photoferrotrophy, CFe(II) (mM) is the concentration of aqueous Fe(II), \({K}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}^{{\mathrm{ph}}}\) (mM) is the half-saturation constant for photoferrotrophy and XSW2 (cells per litre) is the biomass density of suspended R. ferrooxidans SW2. The equation for rSW2 assumes that light is non-limiting. The corresponding changes in biomass density and Fe(II) concentration with respect to time are given by:

$$\frac{{\mathrm{d}}{X}_{{{\mathrm{SW}}}2}}{{{\mathrm{d}}t}}={r}_{{{\mathrm{SW}}}2}$$
(4)
$$\frac{{\mathrm{d}}{C}_{{{\mathrm{Fe}}}({{\mathrm{II}}})}}{{{\mathrm{d}}t}}=-\frac{{r}_{{{\mathrm{SW}}}2}}{{Y}_{{{\mathrm{SW}}}2}}$$
(5)

where YSW2 (cells per mmol of Fe(II)) is the growth yield of R. ferrooxidans SW2 on Fe(II).

Nitrate-reducing Fe(II) oxidation by KS was modelled considering two denitrification steps (\({{\rm{NO}}}_{3}^{-}\mathop{\longrightarrow }\limits^{1}{\rm{NO}}\mathop{\longrightarrow }\limits^{2}{{\rm{N}}}_{2}{\rm{O}}\)), where the dependence of the electron acceptor (N species) and electron donor (Fe(II)) was accounted for via dual-Monod kinetics. We chose to constrain our model to two reaction steps on the basis of the results described previously25, which suggest that KS may not be able to reduce N2O to N2, and the fact that no NO2 was detected in our experiments, suggesting fast kinetics for the step from NO3 to NO2. Although there is abundant discussion in the literature regarding which strain in the enrichment culture is responsible for each denitrification step, and the extent to which each step is enzymatically coupled to Fe(II) oxidation16,43,46, we adopted the simplest scenario in the simulations, which does not distinguish between community members and assumes that all denitrification steps are enzymatically coupled to Fe(II) oxidation. The true scenario may be more complex; however, our model formulation successfully captured the dynamics of the culture well and accurately predicted the timing and magnitude of the formation of reactive intermediates.

The growth rate of KS, \({r}_{{{\mathrm{KS}}}}^{i}\), during each denitrification step is given by the following generalized expression:

$${r}_{{{\mathrm{KS}}}}^{\,i}={\mu }_{\max }^{i}\left(\frac{{C}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}}{{C}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}+{K}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}^{{{\mathrm{NDFO}}}}}\right)\left(\frac{{C}_{{{\mathrm{N}}}_{i}}}{{C}_{{{\mathrm{N}}}_{i}}+{K}_{{{\mathrm{N}}}_{i}}}\right){X}_{{{\mathrm{KS}}}}$$
(6)

where \({\mu }_{\max }^{i}\) (per day) is the maximum specific growth rate constant for the reduction of nitrogen species, i, coupled to Fe(II) oxidation, \({K}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}^{{{\mathrm{NDFO}}}}\) (mM) is the half-saturation constant for NDFO, \({K}_{{{\mathrm{N}}}_{i}}\) (mM) is the half-saturation constant for each ith electron acceptor (either NO3⁻ or NO) in the denitrification chain and XKS (cells per litre) is the biomass density of suspended KS. Each step in the denitrification chain was modelled as a microbially mediated step, assumed to be carried out by a facet of the KS culture. Abiotic reaction steps were not accounted for in our model formulation. Kinetic mass transfer between the aqueous and gaseous phases (headspace and liquid) was simulated via linear-driving-force film diffusion, assuming Henry’s law partitioning of NO, N2O and N2.

$${r}_{{{\mathrm{tr}}}}^{\,i}={k}_{{{\mathrm{tr}}}}\left({C}_{{{\mathrm{N}}}_{i}}-\frac{{p}_{{{\mathrm{N}}}_{i}}}{{RT}{H}_{i}}\right)$$
(7)

In equation (7), \({r}_{\rm{tr}}^{i}\) (mM per day), is the mass transfer rate between headspace and liquid of the ith volatile nitrogen compound, ktr (per day) is the first-order mass-transfer rate coefficient, \({C}_{{{\mathrm{N}}}_{i}}\) (mM) is the aqueous-phase concentration, \({p}_{{{\mathrm{N}}}_{i}}\) (Pa) is the partial pressure and Hi is the Henry’s law constant of the ith volatile nitrogen compound, respectively; R (J mol−1 K1) is the ideal gas constant and T is the absolute temperature (298.15 K). (Note that headspace dilution due to sampling was also considered.) The aqueous concentration changes for Fe(II), the nitrogen species and KS are given by:

$$\frac{{\mathrm{d}}{C}_{{{\mathrm{Fe}}}\left({{\mathrm{II}}}\right)}}{{{\mathrm{d}}t}}=-\mathop{\sum }\limits_{i=1}^{n}\frac{{r}_{{{\mathrm{KS}}}}^{\,i}}{{Y}_{{{\mathrm{KS}}},i}}$$
(8)
$$\frac{{\mathrm{d}}{C}_{{{\mathrm{NO}}}_3}}{{{\mathrm{d}}t}}=-\frac{1}{3}\frac{{r}_{{{\mathrm{KS}}}}^{{{\mathrm{NO}}}_3}}{{Y}_{{{\mathrm{KS}}},1}}$$
(9)
$$\frac{{\mathrm{d}}{C}_{{{\mathrm{NO}}}}}{{{\mathrm{d}}t}}=\frac{1}{3}\frac{{r}_{{{\mathrm{KS}}}}^{{{\mathrm{NO}}}_3}}{{Y}_{{{\mathrm{KS}}},1}}-\frac{{r}_{{{\mathrm{KS}}}}^{{{\mathrm{NO}}}}}{{Y}_{{{\mathrm{KS}}},2}}-{r}_{{{\mathrm{tr}}}}^{{{\mathrm{NO}}}}$$
(10)
$$\frac{{\mathrm{d}}{C}_{{{\mathrm{N}}}_{2}{\mathrm{O}}}}{{{\mathrm{d}}t}}=\frac{1}{2}\frac{{r}_{{{\mathrm{KS}}}}^{{{\mathrm{NO}}}}}{{Y}_{{{\mathrm{KS}}},2}}-{r}_{{{\mathrm{tr}}}}^{{{\mathrm{N}}}_{2}{\mathrm{O}}}$$
(11)
$$\frac{{\mathrm{d}}{X}_{{{\mathrm{KS}}}}}{{{\mathrm{d}}t}}=\mathop{\sum }\limits_{i=1}^{n}{r}_{{{\mathrm{KS}}}}^{\,i}$$
(12)

In equations (8)–(12), YKS,1 and YKS,2 (cells per mmol of Fe(II)) are the growth yields of KS2 for the two successive NDFO reaction steps.

For the case of a mixed R. ferrooxidans SW2 and KS incubation (equation (13), in which wKS denotes ‘with KS’), we accounted for toxic inhibition of the growth and activity of photoferrotrophs (R. ferrooxidans SW2) by NO. To account for the observed inhibition we incorporated a NO-dependent microbial decay term, which lumps both cell lysis and dormancy in response to NO-related toxic stress. The model considers that the population of active R. ferrooxidans SW2 decays rapidly in response to NO exposure:

$${\left.\frac{{\mathrm{d}}{X}_{{{\mathrm{SW}}}2}}{{{\mathrm{d}}t}}\right|}_{{{\mathrm{wKS}}}}={r}_{{{\mathrm{SW}}}2}-{k}_{{\mathrm{d}}}\left(1-{f}_{{{\mathrm{tox}}}}^{\;{{\mathrm{NO}}}}\right){X}_{{{\mathrm{SW}}}2}$$
(13)

where kd (per day) is the first-order decay rate coefficient and \({f}_{{{\mathrm{tox}}}}^{\;{{\mathrm{NO}}}}\) is a concentration-dependent toxicity function (0 < \({f}_{{{\mathrm{tox}}}}^{\;{{\mathrm{NO}}}}\) < 1).

$${f}_{{{\mathrm{tox}}}}^{\;{{\mathrm{NO}}}}=\frac{1}{1+{\left(\frac{{C}_{{{\mathrm{NO}}}}}{{K}_{{\mathrm{I}}}^{{{\mathrm{NO}}}}}\right)}^{p}}$$
(14)

In equation (14), CNO (mM) is the actual aqueous concentration of NO, \({K}_{{\mathrm{I}}}^{{{\mathrm{NO}}}}\) (mM) is the toxic inhibition concentration and p is an exponent that characterizes the slope of the curve at the \({K}_{{\mathrm{I}}}^{{{\mathrm{NO}}}}\) inflection point. Toxicity effects were included on the basis of the observation that NO accumulated at detectable levels in the headspace of the reactors and that Fe(II) oxidation stopped after 3.5 days in replicate reactors, despite the lack of a light limitation. Supplementary incubations with different levels of NO confirmed that the activity of R. ferrooxidans SW2 is suppressed at the NO concentration of 12 nM (the value used for \({K}_{{\mathrm{I}}}^{{{\mathrm{NO}}}}\) in equation (16)).

Periodic sample collection was simulated as the constant sampling rate, Qs (4.62 × 10−9 l s−1) (based on the total amount of sample volume collected over the duration of the experiment) and was assumed to result in the headspace dilution of NO and N2O partial pressures, pNO (Pa) and \({p}_{{{\mathrm{N}}}_{2}{\mathrm{O}}}\) (Pa), respectively. Changes in the partial pressures of NO and N2O are given by:

$$\frac{{\mathrm{d}}{p}_{{{\mathrm{NO}}}}}{{{\mathrm{d}}t}}=-\frac{{p}_{{{\mathrm{NO}}}}{Q}_{{\mathrm{s}}}}{{V}_{{\mathrm{g}}}}+\left(\frac{{V}_{{\mathrm{w}}}}{{V}_{{\mathrm{g}}}}\right){{RT}r}_{{{\mathrm{tr}}}}^{{{\mathrm{NO}}}}$$
(15)
$$\frac{{\mathrm{d}}{p}_{{{\mathrm{N}}}_{2}{\mathrm{O}}}}{{{\mathrm{d}}t}}=-\frac{{p}_{{{\mathrm{N}}}_{2}{\mathrm{O}}}{Q}_{{\mathrm{s}}}}{{V}_{{\mathrm{g}}}}+\left(\frac{{V}_{{\mathrm{w}}}}{{V}_{{\mathrm{g}}}}\right){{RT}r}_{{{\mathrm{tr}}}}^{{{\mathrm{N}}}_{2}{\mathrm{O}}}$$
(16)

In equations (15) and (16), Vw (l) and Vg (l) are, respectively, the aqueous and gaseous volumes in the reactors, and \(r_{\mathrm{tr}}^{\mathrm{NO}}\) and \(r_{\mathrm{tr}}^{\mathrm{N}_{2}{\mathrm{O}}}\) are the mass transfer rates of NO and N2O, respectively, as calculated by equation (7).

All model variants were set up as well-mixed batch reactors. Partitioning of NO and N2O between the aqueous and gaseous phases was considered in model variants that simulated NDFO. The coupled system of ordinary differential equations was solved in MATLAB using the built-in ordinary differential equation solver ode15s47. The R. ferrooxidans SW2 and KS growth models were calibrated individually, that is, the parameters for R. ferrooxidans SW2 growth were derived by fitting the data from the SW2-only incubations to a model version considering only photoferrotrophy in the absence of KS. Parameters for the growth of KS were derived by fitting the dual-Monod two-step denitrification model to the geochemical data collected from the KS-only incubations. We fitted the logarithms of the parameters rather than the parameters themselves using the lsqnonlin function in MATLAB48, thereby alleviating the discrepancy between nominal values that differ by orders of magnitude. Our fitting scheme was based on minimizing the sum of squared differences between the measurements and the simulated output. Calibrated parameter values for photoferrotrophy and NDFO catalysed by the KS culture are presented in Supplementary Table 3 (parameter sensitivity and uncertainty analyses are given in Supplementary Methods 1). The simulation of the combined incubation where KS and R. ferrooxidans SW2 were grown together was achieved by combining the parameters fitted from the individual incubations into a lumped model. The only additional parameters in the mixed case were those for the toxicity function. The toxic inhibition concentration for NO, \({K}_{{\mathrm{I}}}^{{{\mathrm{NO}}}}\), was set to the value derived from our toxicity experiments, and the parameters kd and p were modified to the data in the combined incubation.

Bioinformatics

Hundreds of thousands of assembly structure report files were downloaded from the RefSeq database at the National Center for Biotechnology Information (NCBI)49 to study the distribution of NO reductase genes in bacterial genomes. This number was reduced to ~30,000 assemblies by selecting only the best assembly for each species (as defined in the NCBI taxonomy database information for the genomes50). Further analysis was conducted as outlined in Supplementary Method 3.