Hidden in the modern-day genomes of today's living organisms are the imprints of ancient biogeochemical events. Lawrence David and Eric Alm have developed a new algorithm designed to reconstruct ancient genomes, taking into account the confounding effects of horizontal gene transfer and phylogenetic uncertainty. Applying this to around 100,000 gene sequences from present-day organisms, they find the genetic imprints of major events in Earth's history, including the gradual rise of oxygen starting more than 2.5 billion years ago, and a previously unreported brief but massive expansion in genetic diversity in the Archaean, more than 2 billion years before the Cambrian explosion. To shed light on the natural history of Precambrian life, the evolutionary history of almost 4,000 gene families across the three domains of life are mapped onto a geological timeline. Over one-quarter of modern gene families arose during a period of rapid diversification of bacterial lineages. Functionally, these genes are likely to be involved in electron transport and respiratory pathways, whereas those that arose later are implicated in functions consistent with an increasingly oxygenating biosphere. The natural history of Precambrian life is still unknown because of the rarity of microbial fossils and biomarkers1,2. However, the composition of modern-day genomes may bear imprints of ancient biogeochemical events3,4,5,6. Here we use an explicit model of macroevolution including gene birth, transfer, duplication and loss events to map the evolutionary history of 3,983 gene families across the three domains of life onto a geological timeline. Surprisingly, we find that a brief period of genetic innovation during the Archaean eon, which coincides with a rapid diversification of bacterial lineages, gave rise to 27% of major modern gene families. A functional analysis of genes born during this Archaean expansion reveals that they are likely to be involved in electron-transport and respiratory pathways. Genes arising after this expansion show increasing use of molecular oxygen (P = 3.4 × 10−8) and redox-sensitive transition metals and compounds, which is consistent with an increasingly oxygenating biosphere.