Life on earth relies on three types of information polymers-DNA, RNA and proteins. In all organisms and viruses, these molecules are synthesized by the copying of pre-existing templates. A triplet-based code known as the genetic code guides the synthesis of proteins by complex enzymatic machines that decode genetic information in RNA sequences. The origin of the genetic code is one of the most fundamental questions in biology. In this study, computational analysis of about 5,000 species level metagenomes using techniques for the analysis of human language suggests that the genomes of extant organisms contain relics of a distinct triplet code that potentially predates the genetic code. This code defines the relationship between adjacent triplets in DNA/RNA sequences, whereby these triplets predominantly differ by a single base. Furthermore, adjacent triplets encode amino acids that are thought to have emerged around the same period in the earth’s early history. The results suggest that the order of triplets in primordial RNA sequences was associated with the availability of specific amino acids, perhaps due to a coupling of a triplet-based primordial RNA synthesis mechanism to a primitive mechanism of peptide bond formation. Together, this coupling could have given rise to early nucleic acid sequences and a system for encoding amino acid sequences in RNA, i.e. the genetic code. Thus, the central role of triplets in biology potentially extends to the primordial world, contributing to both the origins of genomes and the origins of genetically coded protein synthesis.SignificanceOne of the most intriguing discoveries in biology is that the order of amino acids in each protein is determined by the order of nucleotides (commonly represented by the letters A, U, G, C) in a biological molecule known as RNA. The genetic code serves as a dictionary that maps each of the 64 triplets ‘words’ in RNA to the 20 amino acids, thereby specifying how information encoded in RNA is decoded into sequences of amino acids (i.e., proteins). The deciphering of the genetic code was one of the greatest discoveries of the 20th century (1968 Nobel Prize in Medicine and Physiology) and is central to modern molecular biology. Yet, how it came to be that the order of triplets in RNA encodes the sequence of the protein synthesized remains one of the most important enigmas of biology. Paradoxically, in all life forms proteins cannot be synthesized without RNA and RNA itself cannot also be synthesized without proteins, presenting a chicken and egg dilemma. By analyzing thousands of microbial genomes using approaches drawn from the field of natural language processing, this study finds that the order of triplets across genomes contains relics of an ancient triplet code, distinct from but closely connected to the genetic code. Unlike the genetic code which specifies the relationship between information in RNA and the sequence of proteins, this ancient code describes the relationship between adjacent triplets in extant genome sequences, whereby such triplets are often different from each other by a single letter. Triplets that are closely related by this ancient code encode amino acids that are thought to have emerged around the same period in the earth’s early history. In other words, a fossil record of the chronological order of appearance of amino acids on early earth appears written in genome sequences. This potentially demonstrates that the process by which RNA sequences were synthesized in the primordial world relied on triplets and was coupled to amino acids available at the time. Hence, the connections between primordial RNA synthesis and a primitive mechanism for linking amino acids to form peptides could have enabled one type of molecule (RNA) to code for the other (protein), facilitating the emergence of the genetic code.