Introduction

Although there are few constraints on the how the size of the biosphere has changed through Earth’s history, phosphorus (P) is commonly considered to be the major limiting nutrient for primary production on geologic time scales. It is also generally accepted that P has a critical role in regulating the extent of organic carbon (C) burial and thus atmospheric oxygen levels (pO2)1,2,3,4,5,6,7. However, our understanding of the factors that govern the retention or regeneration of P during burial and subsequent chemical alteration of marine sediments (diagenesis) arguably remains limited. Traditionally, bottom-water oxygen concentrations have been assumed to exert the largest influence on P burial4. More recently, it has been suggested that the rise of bioturbation in the early Paleozoic significantly increased marine P burial6,8. However, although these factors may influence the burial of organic and iron-bound P phases, the dominant controls on the formation of carbonate fluorapatite (CFA)—the largest modern authigenic P burial flux9—are relatively poorly understood. As CFA accounts for >50% of marine P burial9, this translates into considerable uncertainty regarding the chief factors responsible for global P cycling and, by extension, the processes regulating global organic carbon burial and atmospheric pO2 on geologic time scales.

The factors regulating CFA formation and burial in marine sediments and the relative importance of environmental and biological boundary conditions in influencing this process have been underexplored. For example, the kinetics of CFA formation are typically simplified for use in diagenetic models; commonly, CFA formation is parameterized as a linear relationship with dissolved phosphate (e.g., refs. 5,8,10), and the roles played by other key CFA components such as Ca2+, CO32−, and F are largely overlooked. In particular, calcium (Ca) is the most abundant ionic species in CFA (Ca9.54Na0.33Mg0.13(PO4)4.8(CO3)1.2F2.48, ref. 11) and seawater dissolved Ca is the single most important Ca source for CFA formation in the upper marine sediment pile. Intuitively, the large swings in seawater Ca concentration during the Phanerozoic12,13,14 could have significantly influenced the saturation state and thus precipitation rate of CFA. Here, using models and empirical data, we make a case that seawater Ca concentrations are a key factor shaping marine P burial. Our model results also suggest a significant role for seawater Ca on the evolution of Earth’s redox budget.

Results and discussion

Model evidence for a Ca control on marine P burial

To explore the idea that Ca may exercise a major control on P cycling, we first built a simple diagenetic model that includes only organic matter, organic P, Ca2+, CO32−, PO43−, F, and CFA (see Methods). In contrast to the simplified rate law used in previous studies5,8,10, this model includes a rate law that describes the formation rate of CFA as a function of its saturation state, which is consistent with experimental observations15,16. This exercise indicates that an increase in seawater Ca concentrations will drive a significant increase in CFA formation (Fig. 1 and Supplementary Figure 1), decreasing phosphate diffusion (i.e., P recycling) from the sediment pile back to seawater. In other words, this exercise confirms that Ca promotes CFA formation, which leads to greater P retention in marine sediments (Fig. 1 and Supplementary Figure 1).

Fig. 1: Diagenetic model of seawater Ca influence on CFA and P burial.
figure 1

PCFA represents burial concentration of CFA-associated phosphorus in marine sediments. ab The effects of seawater dissolved calcium concentration ([Ca]SW) upon PCFA and P burial efficiency. Labeled fluxes indicate rates of organic matter loading at the sediment–seawater interface.

To further explore the role played by seawater Ca concentration and determine the relative influence of a range of environmental and biotic factors on P burial in marine systems, we also developed an extended, multicomponent reaction-transport marine sediment diagenesis model, which includes over 30 diagenetic reactions, a saturation state-dependent rate law for CFA formation, and complete, detailed parameterization of porewater pH, carbonate chemistry, and adsorption (see Methods and Supplementary Tables 15). We have also included the iron phosphate mineral vivianite (which is a significant P sink in some restricted marine settings today8). We calibrated our CFA rate law in our fully parameterized model using sedimentary porewater and solid-phase data collected from a well-characterized modern shallow marine site (ref. 3, Friends of Anoxic Mud site, FOAM) and the deep-sea ODP site 1226 (Supplementary Figures 2–3, see Supplementary Methods for further description). Using this extended model, we then explored the relative influence of a range of environmental and biotic factors on P burial.

Our model results show that the intensity of bioturbation, the magnitude of the organic matter flux to the sediment surface, and the concentration of dissolved oxygen in bottom waters all have non-negligible and nonlinear effects on CFA formation and total P burial (Fig. 2 and Supplementary Figures 46). Our model, like other recently developed models8, also indicates that increases in bioturbation intensity and depth can be associated with increases in CFA and total P burial, although enhancement of P burial by bioturbation is considerably more muted or even reversed at higher bioturbation intensities and depths (Fig. 2 and Supplementary Figures 46). Similarly, we find that CFA burial does not have a simple, linear relationship with organic matter flux or bottom-water oxygen levels (Fig. 2 and Supplementary Figures 46). Changes in bioturbation, organic matter flux, and bottom-water oxygen levels shape multiple factors controlling the saturation state of CFA, which can lead to nonlinear changes in P burial efficiency. For example, higher organic matter fluxes can promote CFA burial by providing more dissolved inorganic phosphate17. However, increased organic matter fluxes can also dampen CFA burial, when there is a sharp drop in the pH of pore waters in the upper portion of the sediment pile. Although our model provides new insights into P burial (Fig. 2), our results, overall, corroborate those of other modeling studies that have documented similar nonlinear behavior of CFA burial in response to variability in environmental factors17.

Fig. 2: Nonlinear effects on CFA, total P burial, and Corg/Preac.
figure 2

PCFA (circles) represents burial concentration of CFA-associated phosphorus in marine sediments. BE (diamonds) represents the burial efficiency of reactive phosphorus in marine sediments. Corg/Preac represents the burial ratio between organic carbon and reactive P. ad The effects upon PCFA, BE, and Corg/Preac of bottom-water oxygen concentration a, seawater dissolved calcium concentration b, flux of organic carbon to the sediment–seawater interface (Joc) c, and bioturbation d. For bioturbation, the four parameters included in the model (DB0, a0, xbt, and xbi) were increased linearly from zero to modern average values, whereas a linear increase of 16% was applied to porosity. Bioturbation is parameterized here as a coupled biodiffusion and bioirrigation term. See Supplementary Tables 15 for full list of model parameters.

Despite significant increases in the complexity of our extended diagenetic model, we find, in agreement with the results of our basic diagenetic model, that marine Ca concentrations markedly alter the efficiency of P burial. Calcium concentrations, by strongly influencing CFA saturation state, have a strong impact on overall P burial relative to other environmental factors (Figs. 23 and Supplementary Figures 47). Unlike other environmental forcings—such as bioturbation, organic matter flux, and bottom-water oxygen levels—higher seawater Ca concentrations always induced more CFA burial (Fig. 2 and Supplementary Figures 46), owing to its direct effect on the saturation state of CFA. Increases in CFA burial at high seawater Ca concentrations mediate decreases in the burial ratio between organic C and reactive P (Corg/Preac, Fig. 2, and Supplementary Figures 45). Given significant secular variability in seawater dissolved Ca concentrations over the last 80 million years as well as, more broadly, throughout the Phanerozoic (between ≤10 and 30 mm over the last ~500 million years)12,13,14, shifts in dissolved calcium concentrations are likely to have been a key environmental factor controlling P burial efficiency over this interval.

Fig. 3: Influence of environmental factors on CFA burial.
figure 3

a The effect of environmental forcings on CFA burial. The y axis denotes the concentration of CFA-associated P in sediments. b the effect of environmental forcings on the burial ratio between organic carbon and reactive P. The horizontal line represents the value for the shallow marine reference model run (see Supplementary Methods). All parameters were held constant, apart from the individual parameter varied for each sensitivity analysis. Bioturb is a coupled biodiffusion and bioirrigation term and Joc is the flux of organic matter to the sediment-water interface.

Bottom-water dissolved inorganic carbon (DIC), as well as dissolved sulfate, magnesium, and phosphate concentrations appear to have relatively little impact on CFA burial (Fig. 3). There are likely two chief reasons why bottom-water DIC and phosphate concentrations do not significantly mediate CFA burial. The first is that the stoichiometric abundance of CO32−and PO43− in CFA is low, relative to that of Ca2+ (ref. 11). Moreover, porewater DIC and dissolved inorganic phosphorus (DIP) are mainly generated by the decomposition of organic matter and/or the reduction of iron oxides5,8, rather than diffusion from seawater. The Mg concentration of seawater also does not appear to exercise a strong control on CFA burial, likely because Mg is a minor component of CFA. Bottom-water pH also appears to not strongly influence CFA burial (Fig. 3). This is likely because sedimentary and porewater reactions, rather than seawater, are the most important source of the protons within the sediment pile. In sum, we find that bottom-water oxygen, the extent of organic matter loading, and bioturbation play a sizeable role in controlling marine P burial, consistent with previous studies6,8. However, our results also show that seawater Ca concentrations have a major role in controlling P burial.

Empirical evidence for a Ca control on marine P burial

A Ca control on marine P burial is also supported by P speciation data compiled from Cenozoic deep-sea sediment cores across the Pacific and Atlantic Ocean basins (Fig. 4; see Supplementary Methods; further characteristics of the compiled sites are also shown in Supplementary Table 6). After filtering data from the uppermost sediment pile that are still undergoing active diagenesis (see Supplementary Methods), these deep-sea data suggest relatively constant CFA burial between 80 Ma and 40 Ma and a gradual decrease in CFA burial starting ~40 Ma (Fig. 4). This trend can be seen in both the Pacific and Atlantic sites (Fig. 4). Meanwhile, empirical Mg/Ca data from fluid inclusions, biogenic carbonates, and calcite veins in oceanic crust suggest a gradual decrease in seawater Ca concentrations also began ~40 million years ago (refs. 12,13,14, Fig. 4). Thus, secular trends in CFA burial correspond well with the timing of changes in seawater Ca concentration. Coupled with the prediction from our model that Ca concentrations will directly affect CFA saturation state and thus CFA burial, this covariation suggests that seawater Ca concentration is, through its influence of CFA formation, a major long-term forcing on global P burial.

Fig. 4: Coupling of CFA burial and calcium over 80 million years.
figure 4

a Changes in the burial ratio of CFA-associated P to total reactive P (a sum of organic P, CFA, and iron-bound P) in deep-sea sediments. Points represent mean values for each 2 myr bin, with the error bars represent one standard deviation (1σ). The black curve represents deep-sea model results from the coupled C-P-O model. See Supplementary Information for discussion of the data compilation. b Seawater Mg/Ca ratios recorded in CaCO3 veins of oceanic crust (circles)14, fluid inclusions (triangles)12 and echinoderm ossicles (squares)13. The curve denotes one of the estimates for seawater Ca concentrations through this interval12.

The influence of calcium on atmospheric oxygenation

In order to explore the influence of variation in marine Ca concentrations on global organic carbon burial and atmospheric pO2, we coupled our extended diagenetic model to a simple global carbon cycle mass balance model. Specifically, we used the outputs of our extended diagenetic model to parameterize how P burial efficiencies vary as a function of bottom-water oxygen, extent of organic matter loading, marine Ca concentrations, and bioturbation in a global carbon cycle mass balance model (modified from ref. 4, Supplementary Tables 713). The primary goal of our global carbon cycle modeling approach was to test to what extent changes in seawater dissolved Ca concentration (as indicated by geologic archives) could have influenced contemporaneous atmospheric pO2 (Fig. 5 and Supplementary Figures 914). Full details of the carbon cycle mass balance model (and the full suite of parameters employed) are provided in the Methods and the Supplementary Information. We find that increases in seawater dissolved Ca concentration would, by inducing increased CFA precipitation and decreasing P recycling, lead to decreased seawater P concentration (Fig. 5). More importantly, an increase in CFA precipitation decreases the burial ratio between organic carbon and reactive phosphorus (Fig. 2)—this, at a constant P flux to the oceans, in turn will lead to a drop in atmospheric oxygen levels.

Fig. 5: Atmospheric oxygen levels respond to changes in calcium or bioturbation.
figure 5

a Model input of seawater dissolved Ca concentration or bioturbation (0 represents no bioturbation, whereas 1 represents the reach of modern bioturbation). bf Model outputs of variations in P burial associated with CFA formation, total marine P (a sum of dissolved inorganic phosphate, dissolved organic phosphorus and soluble particulate inorganic phosphorus), net primary productivity (NPP), organic P burial flux and atmospheric oxygen levels. pO2 shown in the figure is the actual percent by volume.

Our model results suggest that Ca could exercise a strong external control on atmospheric pO2 (Fig. 5). For example, an increase in seawater Ca concentration from 10 mm to 20 mm could lead to a >50% decrease in atmospheric pO2, from modern levels 21% to ~10% (Fig. 5). There is a small rebound in the total marine P reservoir after a decrease induced by a shift in [Ca2+] (Fig. 5c), which is owing to the delayed decrease in atmospheric oxygen and thus iron-bound P burial.

Given the large swings in Phanerozoic seawater Ca concentration recorded by geologic archives12,13,14,18,19, our results suggest that seawater Ca concentration could be one of the key factors shaping atmospheric pO2 evolution. For example, proxy records indicate low seawater dissolved Ca concentrations during the Carboniferous–Permian12,20, which would have inhibited CFA formation and driven the development of the high atmospheric pO2 that, on the basis of both geochemical and paleontological archives21,22,23,24,25, has been previously suggested to be characteristic of this time (interval 3 of Supplementary Figure 12). Fluid-inclusion data and carbonate mineralogical records are also commonly interpreted to indicate an increase in seawater dissolved Ca concentrations occurred during the early Cambrian12,26,27,28, coincident with what has been previously suggested to have been an interval of ocean deoxygenation (e.g., refs. 6,23,29).

Our modeling results indicate that seawater Ca concentration is likely a major driver of total P burial, such that, over Earth’s history, high seawater dissolved Ca concentrations should correspond to significant increases in P burial efficiency and relatively low atmospheric pO2. A compilation of deep-sea P speciation data from the past 80 million years provides empirical support for the effect of seawater dissolved Ca concentrations on P burial and bolster the case that this Ca-driven feedback strongly impacts the global ocean-atmosphere system. These results provide a new view of the processes linking marine elemental cycles, tectonics and atmospheric pO2, and suggest that the major ion composition of seawater has been an important driver of biospheric change and atmospheric evolution throughout Earth’s history.

Methods

Basic 1D diagenetic model

The basic reactive-transport diagenetic model we developed includes six components, including two solid-phase species: organic matter and CFA; and four solute components: [Ca2+], [DIC], [DIP], and [F]. The mass balance functions for this basic model are30,31:

$$\frac{{\partial {\mathit{C}}_l}}{{\partial t}} = \frac{1}{\phi }\frac{\partial }{{\partial x}}\left( {\phi {\mathrm{D}}\frac{{\partial C_l}}{{\partial x}}} \right) - \frac{1}{\phi }\frac{\partial }{{\partial x}}\left( {\phi \upsilon {\mathit{C}}_l} \right) + {\sum} {R_l}$$
(1)
$$\frac{{\partial {\mathit{C}}_s}}{{\partial t}} = - \frac{1}{{1 - \phi }}\frac{\partial }{{\partial x}}\left( {(1 - \phi )\omega {\mathit{C}}_s} \right) + {\sum} {R_s}$$
(2)

where Cl is the concentration of solute, Cs is the concentration of solid, ϕ is porosity, D is molecular diffusion, ʋ is the solute advection rate, ω is solid advection rate, and Rs and Rl are, respectively, the solid and solute reaction rates. The effect of molecular diffusion is calibrated to tortuosity through \({\mathrm{D}} = \frac{{{\mathrm{D}}_m}}{{1 - 2\ln \left( \phi \right)}}\), where Dm is the intensity of molecular diffusion. The effect of compaction on the solute and solid advection rates was also considered using the method described in ref. 30. The depth dependence of porosity was represented by ϕ(x) = ϕ + (ϕ0 − ϕ) exp(−x/λ), where λ is the porosity attenuation length, and ϕ0 and ϕ represent porosity at the sediment–seawater interface and at depth, respectively. The boundary conditions for these species and the above model parameters were also used for the extended, multicomponent version of the diagenetic model (described in more detail below; Supplementary Tables 1 and 5). The porewater profiles of pH, [Mg2+], and [Na+] were, for this basic iteration of the diagenetic model, fixed at seawater levels. The Redfield ratio of 106:1 was used as the C/P ratio of the organic matter. There are only two reactions in this basic model, the decomposition of organic matter and the formation of CFA. A reactive continuum-type model32 was used to describe the decomposition of organic matter in this basic model iteration.

CFA is the largest P sink in the global marine P cycle3. In this study, we use the stoichiometry of a carbonate-rich francolite11,33—Ca9.54Na0.33Mg0.13(PO4)4.8(CO3)1.2F2.48—although the stoichiometry of CFA can be variable. Previous studies have simplified the precipitation rate of CFA by presuming a linear relationship with excess dissolved phosphate (relative to an assumed equilibrium phosphate concentration, refs. 5,8,10). However, experimental studies have shown that the rates of the crystal growth of calcium hydroxylapatite and calcium fluorapatite are functions of saturation state15,16. Thus, in this study, we more completely parameterize the kinetics of CFA formation by assuming that the formation rate of CFA is characterized by a first-order relationship with its saturation state. When the saturation state of CFA (ΩCFA) is higher than 1, the precipitation rate of CFA can be expressed as:

$$R_{CFA} = k_{CFA}({\mathrm{\Omega }}_{CFA} - 1)$$
(3)

where kCFA is a kinetic constant for CFA, obtained by fitting to FOAM porewater and sedimentary CFA profiles. ΩCFA is expressed as:

$${\mathrm{\Omega }}_{CFA} = \frac{{([Ca^{2 + }] \cdot rCa)^{9.54} \cdot ([Na^ + ] \cdot rNa)^{0.33} \cdot ([Mg^{2 + }] \cdot rMg)^{0.13} \cdot ([PO_4^{3 - }] \cdot rPO_4)^{4.8} \cdot ([CO_3^{2 - }] \cdot rCO_3)^{1.2} \cdot ([F^ - ] \cdot rF)^{2.48}}}{{K_{spCFA}}}$$
(4)

where rCa, rNa, rMg, rPO4, rCO3, and rF represent the activity coefficients of each ion. KspCFA is the equilibrium constant of CFA, which was found to be a function of carbonate activity11:

$${\mathrm{log}}(K_{spCFA}) = - 83.231 + 2.3307 \cdot {\mathrm{log}}([CO_3^{2 - }] \cdot rCO_3)$$
(5)

In this parametrization, carbonate ion activity influences the saturation state of CFA through its effect on both IAP and Ksp. We have also used the same stoichiometry of CFA and a fixed KspCFA (10−99.7) without a relationship with carbonate activity in a series of runs (Supplementary Figures 5, 6, and 10) and found that this change only has a subtle influence on the model results (Figs. 2 and 5, and Supplementary Figures 5 and 10). It is also possible that stoichiometric abundance of CO32− in CFA correlates with [CO32−] of porewater11. However, the relationship between the solubility of CFA, the stoichiometric abundance of CO32−in CFA and [CO32−] of porewater are not fully understood11. These uncertainties may influence the relationship between [CO32−] of porewater and CFA formation, which is currently a negative correlation (Fig. 3). Further, these will not influence our main conclusions as they do not significantly influence the relationship between \([{\mathrm{Ca}}^{2 + }]\) and the saturation of CFA (ΩCFA). Following the approach of previous studies8,10, the dissolution of CFA under ΩCFA < 1 is not included, as CFA is highly insoluble in marine sediments.

Extended 1D multicomponent diagenetic model

Building from previous efforts8,34,35,36, we also built an extended 1D multicomponent model incorporating the biogeochemical cycles of C, N, P, S, Fe, and Mn to more fully simulate the diagenetic P cycle in marine sediments (SEDCHEM). The model includes 15 solutes and 21 solids (Supplementary Table 1). A biodiffusion term was used to describe the mixing of sediment particles. A non-local function37,38 was applied to describe the influence of bioirrigation on the exchange of solutes near the sediment–seawater interface. Combining the molecular diffusion, advection, bioturbation, and reaction terms, the mass balance of solutes and solids can be generalized to the following functions30,31:

$$\frac{{\partial {\mathit{C}}_l}}{{\partial t}} = \frac{1}{\phi }\frac{\partial }{{\partial x}}\left( {\phi {\mathrm{D}}\frac{{\partial C_l}}{{\partial x}}} \right) - \frac{1}{\phi }\frac{\partial }{{\partial x}}\left( {\phi \upsilon {\mathit{C}}_l} \right) + a({\mathit{C}}_{l0} - {\mathit{C}}_l) + {\sum} {R_l}$$
(6)
$$\frac{{\partial {\mathrm{C}}_s}}{{\partial t}} = \frac{1}{{1 - \phi }}\frac{\partial }{{\partial x}}\left( {\left( {1 - \phi } \right){\mathrm{D}}_{\mathrm{B}}\frac{{\partial C_s}}{{\partial x}}} \right) - \frac{1}{{1 - \phi }}\frac{\partial }{{\partial x}}\left( {(1 - \phi )\omega {\mathrm{C}}_s} \right) + {\sum} {R_s}$$
(7)

where DB is the intensity of biodiffusion, a is the coefficient of bioirrigation and Cl0 is the solute concentration in open burrows, which is assumed to be equivalent to the solute concentration of the overlying water column. The attenuations in the intensities of biodiffusion and bioirrigation at depth are described by \({\mathrm{D}}_{\mathrm{B}}\left( {\mathrm{x}} \right) = {\mathrm{D}}_{{\mathrm{B}}0} \cdot \exp \left( { - \left( {\frac{x}{{xbt}}} \right)^2} \right)\) and \({\mathrm{a}}\left( {\mathrm{x}} \right) = {\mathrm{r}} \cdot {\mathrm{a}}_0 \cdot \exp \left( { - \frac{x}{{xbi}}} \right)\), respectively. DB0 and a0 are the biodiffusion and bioirrigation intensities at the sediment–seawater interface, xbt and xbi are the respective attenuation coefficients and r is a correction for the irrigation of Fe2+ and Mn2+ (refs. 35,39). Model components and boundary conditions are shown in Supplementary Table 1. Model reactions, reaction rate laws and parameters can be found in Supplementary Tables 25. The following three sections delineate treatment of the diagenetic P cycle, pH, and adsorption in the extended 1D multicomponent diagenetic model. See Supplementary Text for model solution and model applications.

Diagenetic phosphorus cycle

Parameterizations of the diagenetic P cycle explored in this study share many features with previously published model exercises (e.g., refs. 8,10,36). Three solid P species—organic phosphorus (orgP), iron-bound phosphorus (PFe), and CFA—as well as dissolved inorganic phosphate (ƩPO43−) are included in the extended version of our diagenetic model. In contrast to previous studies, however, our model also includes a more intrinsic reaction rate law for CFA formation, which involves all the major components of CFA and parameterizes the effect of pH on P speciation and burial. To simulate pH, our model also includes proper descriptions of adsorption, the diagenetic Fe cycle, and authigenic carbonate precipitation and dissolution.

Decomposition of organic matter drives diagenetic reactions. The chemical formula of organic matter can be simplified as CNrNPrP, where rN and rP are the molar ratios of organic nitrogen and organic phosphorus relative to organic carbon. The major pathways for the decomposition of organic matter, including aerobic respiration, nitrate reduction, Mn reduction, Fe reduction, sulfate reduction, and methanogenesis are included in the model. As the sequence (and thus spatial distribution) of these pathways is dictated by their respective energy yields40, a Monod scheme was used to describe the operation of these reactions8,10,36.

For the mineralization of orgC in the extended model, we used a multi-G model41 developed from a reactive continuum-type model32. The advantage of this model is that it not only can represent the reactive continuum of organic matter, but also is suitable to apply to the bioturbated zone of the sediment pile41. We divided organic matter into 12 G in this study. Although each G has its own first-order rate constant, their fractions in total organic matter are determined by a gamma distribution41. The rate constant for each Gi is

$$k_i = \left\{ {\begin{array}{*{20}{c}} {1,i = 1} \\ {10^{1.5 - i},i = 2\,to\,11} \\ {10^{ - 10},i = 12} \end{array}} \right.$$
(8)

while the fraction of each Gi is

$$f_i = \left\{ {\begin{array}{*{20}{c}} {\frac{{\mathop {\smallint }\nolimits_0^\infty x^{v - 1} \cdot e^{ - x}dx - \mathop {\smallint }\nolimits_0^a x^{v - 1} \cdot e^{ - x}dx}}{{\mathop {\smallint }\nolimits_0^\infty x^{v - 1} \cdot e^{ - x}dx}},i = 1} \\ {\frac{{\mathop {\smallint }\nolimits_0^{a \cdot 10^{2 - i}} x^{v - 1} \cdot e^{ - x}dx - \mathop {\smallint }\nolimits_0^{a \cdot 10^{1 - i}} x^{v - 1} \cdot e^{ - x}dx}}{{\mathop {\smallint }\nolimits_0^\infty x^{v - 1} \cdot e^{ - x}dx}},i = 2\,to\,11} \\ {\frac{{\mathop {\smallint }\nolimits_0^{a \cdot 10^{ - 10}} x^{v - 1} \cdot e^{ - x}dx}}{{\mathop {\smallint }\nolimits_0^\infty x^{v - 1} \cdot e^{ - x}dx}},i = 12} \end{array}} \right.$$
(9)

where a is the average lifetime of more reactive orgC and v is the shape of orgC distribution32.

The C/P ratio of particulate organic matter typically increases with depth in the sediment pile. Following previous methods36,42, we assume that this variation is generated by different C/P ratios in different organic components, with less reactive (more refractory) organic matter having higher C/P ratios. Thus, we further divided the 12 G fractions into two pools (α and β) with different C/P ratios. With this procedure, it is possible to reproduce empirical sedimentary profiles of organic phosphorus and dissolved phosphate (Supplementary Figure 2). The α pool includes the first 2 G fractions (G1 and G2), whereas the β pool includes the remaining 10 G fractions (G3–G12). The C/P ratios of the two pools are shown in Supplementary Table 5.

Five iron phases are included in the modeled flux to the sediment–seawater interface: (1) highly reactive iron hydroxides (Fe(OH)3α); (2) less reactive iron hydroxides (Fe(OH)3β); (3) unreactive iron hydroxides (Fe(OH)3γ); (4) magnetite (Fe3O4); and (5) biotite (Biot). Demarcation of iron hydroxides by reactivity is similar to the treatment employed by previous models8,36. The rate law for magnetite dissolution is reasonably well established43. Iron may also occur as other silicate-bound phases, but we use biotite as a representation of silicate iron (see ref. 44). At FOAM, biotite dissolution appears to be closely linked to porewater pH. As for previous models8, iron-bound phosphorus is assumed to be associated with iron hydroxides, and the P/Fe molar ratio is described using a constant γ and a variable θ (Supplementary Tables 15). Thus, the precipitation and dissolution of iron hydroxides are accompanied by, respectively, the scavenging and release of dissolved phosphate (Supplementary Table 2).

A major difference of this study from previous studies5,8,10 is that we have parameterized the formation rate of CFA using its saturation state (see above), which is consistent with experimental results15,16. A full description of this method can be found above, as well as in the Supplementary Text and Supplementary Table 3.

We have also included the iron phosphate mineral vivianite in the extended model. Although it has not been extensively documented in marine sediments, it is commonly found in restricted settings45. Following ref. 45, we have used the Michaelis–Menten kinetics for dissolved phosphate and iron in marine porewater to describe the formation of vivianite. Details of the formulation and parameters for vivianite can be found in Supplementary Tables 3 and 5.

Diagenetic pH simulation

We used a method similar to that of Hoffman et al.46 to simulate pH variation during diagenetic processes. Instead of total alkalinity, we used total proton balance (TP) as an equilibrium-invariant and implicit differential variable (whose differentials \(\frac{{{\mathrm{dy}}}}{{dt}}\) are not treated as a main function and are only used to calculate the \(\frac{{{\mathrm{dy}}}}{{dt}}\) of the differential variable) to model pH. Although the results of the two methods are the same, the new method is more straightforward and less-demanding computationally. We define the total proton balance as the sum of those ions that can undergo proton exchange at the modeled pH range (~6–9), which can be written as:

$${\mathrm{TP}} = 2{\mathrm{CO}}_2 + {\mathrm{HCO}}_3^ - + {\mathrm{NH}}_4^ + + 2{\mathrm{H}}_2{\mathrm{PO}}_4^ - + {\mathrm{HPO}}_4^{2 - } + {\mathrm{H}}_2{\mathrm{S}} + {\mathrm{H}}^ +$$
(10)

As the first dissociation constant of phosphoric acid is high and the second dissociation constant of hydrogen sulfide is very low, we do not include H3PO4 and HS in the formulation of TP. Following Hoffman et al.46, we treat TP as an implicit differential variable in the model, which removes the need to solve the algebraic equation numerically. The derivative of the proton concentration is:

$$\frac{{dH}}{{dt}} = \left( {\frac{{dTP}}{{dt}} - \mathop {\sum }\limits_j \frac{{\partial TP}}{{\partial \left[ {S_j} \right]}}\frac{{d\left[ {S_j} \right]}}{{dt}}} \right)/\frac{{\partial TP}}{{\partial H}}$$
(11)

where \([ {S_j}]\) is the total concentration of the dissociation systems \(\big(\mathop {\sum }\nolimits CO_2\), \(\mathop {\sum }\nolimits NH_3\), \(\mathop {\sum }\nolimits {\mathrm{H}}_3{\mathrm{PO}}_4\), and \(\mathop {\sum }\nolimits H_2S \big)\). A derivation of \(\frac{{dH}}{{dt}}\) and the formulation of \(\frac{{\partial TP}}{{\partial \left[ {S_j} \right]}}\) and \(\frac{{\partial TP}}{{\partial H}}\) can be found in the Supplementary Text. In the extended model, the proton mass balance is calculated using Eq. 11, and the \(\frac{{dTP}}{{dt}}\) term is the sum of the mass balance functions of all its species calculated using Eq. 6.

Diagenetic adsorption simulation

Adsorption within marine sediments often involves exchange between protons and ions such as Fe2+ and Mn2+, which is important in modeling pH variation during diagenetic processes. Adsorption is treated here as a reversible linear equilibrium process. For instance, for the adsorption of Fe2+, KFe can be defined as the amount of iron in the adsorbed phase relative to Fe2+ in the solute, thus

$${\mathrm{A}}_{{\mathrm{Fe}}} = F{\mathrm{K}}_{{\mathrm{Fe}}}{\mathrm{Fe}}^{2 + }$$
(12)

where AFe is the concentration of adsorbed solid-phase iron, and \(F = (1 - \phi )/\phi\). In the model, Fe2+ is treated as a differential variable, whereas AFe is treated as an algebraic variable, with the assumption of instantaneous equilibrium between them. As Fe2+ is influenced by both the reaction and transport of Fe2+ and AFe, the derivative of Fe2+ is

$$\frac{{dFe^{2 + }}}{{dt}} = \frac{1}{{1 + {\mathrm{K}}_{{\mathrm{Fe}}}}}RT_{Fe^{2 + }} + \frac{F}{{1 + {\mathrm{K}}_{{\mathrm{Fe}}}}}RT_{{\mathrm{A}}_{{\mathrm{Fe}}}}$$
(13)

where \(RT_{Fe^{2 + }}\) and \(RT_{{\mathrm{A}}_{{\mathrm{Fe}}}}\)are the sum of the reaction and transport terms (excluding adsoption) of Fe2+ and AFe, respectively, which are calculated from Eqs. 6 and 7. The transfer rate (\(RA_H\)) of protons during the adsorption process is

$$RA_H = \frac{{{\mathrm{K}}_{{\mathrm{Fe}}}}}{{1 + {\mathrm{K}}_{{\mathrm{Fe}}}}}RT_{Fe^{2 + }} - \frac{{\mathrm{F}}}{{1 + {\mathrm{K}}_{{\mathrm{Fe}}}}}RT_{{\mathrm{A}}_{{\mathrm{Fe}}}}$$
(14)

Derivations of Eqs. 13 and 14 can be found in the Supplementary Text. The adsorption of NH4+ was not included in the model as it does not influence pathways of P cycling. However, the C/N ratios of organic matter were tuned to fit the FOAM porewater profile (Supplementary Figure 2). As the model can, without parameterization of Mn2+ adsorption, accurately reproduce the FOAM dissolved Mn2+ profile (Supplementary Figure 2), the adsorption of Mn2+ was also not included.

Coupled carbon–phosphorus–oxygen cycle model

Our coupled carbon–phosphorus–oxygen cycle model integrates our newly developed diagenetic model with a global biogeochemical cycling model modified from the carbon–phosphorus cycle model of Van Cappellen and Ingall4,47. The purpose of this coupled diagenetic-global biogeochemical cycling modeling exercise is to illustrate the relative importance of various environmental and biotic factors in controlling carbon and phosphorus cycling and atmospheric pO2 levels. Flux equations, reservoir equations, and parameters are similar to those presented in Van Cappellen and Ingall4,47. Detailed description of the reservoirs, fluxes, and parameters used in the model (and values for each of these) are listed in Supplementary Tables 912.

In contrast to the approach of Van Cappellen and Ingall4,47, in our coupled model the marine sedimentary burial of calcium-bound phosphate (F58) is calculated from our diagenetic model (interpolated between time slices of 1 million years). Rates of organic carbon burial (which are, in turn, influenced by organic carbon remineralization) and organic carbon weathering are, in our model, influenced by atmospheric O2 level, following the parameterization of the COPSE model48. In particular, we have also, for these runs, parameterized the organic C/P ratio as a function of seawater oxygen level in our diagenetic model. This is achieved by parameterizing two factors rP1 and rP2 using the following functions:

$$rP1 = \left\{ {\begin{array}{*{20}{c}} {\frac{1}{{106}},\,\left[ {O_2} \right]_{BW} \, > \, 150{\mathrm{M}}} \\ {\frac{1}{{106}} \ast \frac{{\left[ {O_2} \right]_{BW}}}{{150}} + \frac{{2.4}}{{106}} \ast \left( {1 - \frac{{\left[ {O_2} \right]_{BW}}}{{150}}} \right),\left[ {O_2} \right]_{BW} \, < \, 150\,{\mathrm{M}}} \end{array}} \right.$$
(15)
$$rP2 = \left\{ {\begin{array}{*{20}{c}} {\frac{1}{{106}},\left[ {O_2} \right]_{BW} \, > \, 150\,{\mathrm{M}}} \\ {\frac{1}{{106}} \ast \frac{{\left[ {O_2} \right]_{BW}}}{{150}} + \frac{1}{{500}} \ast \left( {1 - \frac{{\left[ {O_2} \right]_{BW}}}{{150}}} \right),\left[ {O_2} \right]_{BW} \, < \, 150{\mathrm{M}}} \end{array}} \right.$$
(16)

To couple the diagenetic model and the carbon–phosphorus–oxygen cycle model, we built high-resolution look-up tables for CFA burial during the Phanerozoic, using the results of our diagenetic model. We carried out a series of model runs with different bottom-water oxygen concentrations and organic carbon fluxes to the sediment–seawater interface to build look-up tables for the deep sea and shallow oceans, respectively, which were then used to force P burial at each time step. More discussion of the coupled carbon–phosphorus–oxygen cycle model can be found in the Supplementary Text.