Pre-Cambrian atmospheric and oceanic redox evolutions are expressed in the inventory of redox-sensitive trace metals in marine sedimentary rocks. Most of the currently available information was derived from deep-water sedimentary rocks (black shale/banded iron formation). Many of the studied trace metals (e.g. Mo, U, Ni and Co) are sensitive to the composition of the exposed land surface and prevailing weathering style, and their oceanic inventory ultimately depends on the terrestrial flux. The validity of claims for increased/decreased terrestrial fluxes has remained untested as far as the shallow-marine environment is concerned. Here, the first systematic study of trace metal inventories of the shallow-marine environment by analysis of microbial carbonate-hosted pyrite, from ca. 2.65-0.52 Ga, is presented. A petrographic survey revealed a first-order difference in preservation of early diagenetic pyrite. Microbial carbonates formed before the 2.4 Ga great oxygenation event (GOE) are much richer in pyrite and contain pyrite grains of greater morphological variability but lesser chemical substitution than samples deposited after the GOE. This disparity in pyrite abundance and morphology is mirrored by the qualitative degree of preservation of organic matter (largely as kerogen). Thus, it seems that in microbial carbonates, pyrite formation and preservation were related to presence and preservation of organic C. Several redox-sensitive trace metals show interpretable temporal trends supporting earlier proposals derived from deep-water sedimentary rocks. Most notably, the shallow-water pyrite confirms a rise in the oceanic Mo inventory across the pre-Cambrian-Cambrian boundary, implying the establishment of efficient deep-ocean ventilation. The carbonate-hosted pyrite also confirms the Neoarchaean and early Palaeoproterozoic ocean had higher Ni concentration, which can now more firmly be attributed to a greater proportion of magnesian volcanic rock on land rather than a stronger hydrothermal flux of Ni. Additionally, systematic trends are reported for Co, As, and Zn, relating to terrestrial flux and oceanic productivity.