Herpesviruses are among the oldest viral lineages on the planet, with roots stretching back roughly 400 million years to the early evolution of vertebrates. The two viruses most people mean when they say “herpes,” HSV-1 and HSV-2, have a more recent but still remarkably ancient history tied to the divergence of primates and, in the case of HSV-2, an unexpected cross-species jump involving some of our earliest hominin relatives. Unpacking that history requires looking at timescales ranging from hundreds of millions of years down to just a few thousand, and the story that emerges is more surprising than most people expect.
A 400-Million-Year-Old Virus Family
When researchers compare the branching patterns of herpesvirus family trees with those of their animal hosts, the two match up remarkably well. Within each major subfamily of herpesviruses, the order in which viral lineages split mirrors the order in which host species split from one another. That pattern of parallel branching is the hallmark of long-term co-evolution: the virus has been riding along inside host lineages as those lineages slowly diverged into new species over geological time. Based on this co-speciation signal, the herpesvirus family tree is estimated to be about 400 million years deep, placing its origins back when the first terrestrial vertebrates were emerging from aquatic ancestors.1Academic Press. Molecular Evolution of the Herpesvirales
That estimate fits with what we know from broader comparisons. The overall scheme of herpesvirus evolution tracks the development of vertebrates themselves, meaning these viruses were infecting ancient fish-like and reptilian ancestors long before mammals existed.2Academic Press. Origin and Evolution of Viruses Reptilian and avian herpesviruses branched off in ways that partially, though not perfectly, mirror the evolution of reptiles into birds and mammals.3PubMed Central. Integrating reptilian herpesviruses into the family herpesviridae In other words, herpesviruses didn’t arrive in humans from somewhere exotic. They have been with vertebrate life for as long as vertebrate life has existed on land, gradually specializing as each new host lineage emerged.
When the Three Major Branches Split
The herpesvirus family is divided into three subfamilies: alphaherpesviruses (which include HSV-1, HSV-2, and the chickenpox/shingles virus), betaherpesviruses (which include cytomegalovirus), and gammaherpesviruses (which include Epstein-Barr virus). Molecular clock analyses place the common ancestor of all three subfamilies in the Jurassic period, around 177 million years ago, with a credibility range spanning roughly 150 to 210 million years. The three subfamilies themselves formed between about 100 and 145 million years ago, meaning they had already split into distinct lineages before the dinosaur extinction event 66 million years ago.4Virus Evolution. Intrahost speciations and host switches played an important role in the evolution of herpesviruses
Within the alpha and beta branches, the co-speciation signal with mammalian hosts is strong, with consistent branching patterns and divergence rates. The gammaherpesviruses are messier, showing both faster and slower evolutionary rates in different sublineages, which hints at more host-switching events disrupting the tidy co-evolutionary pattern.5PubMed Central. Toward a comprehensive phylogeny for mammalian and avian herpesviruses That difference matters because it tells us that co-evolution, while the dominant story, isn’t the only one. Herpesviruses occasionally do jump between host species, and when they do, the consequences can be dramatic.
HSV-1 Stayed with Us, HSV-2 Jumped In
This is the part of the herpes origin story that surprises most people. HSV-1 and HSV-2 did not arise from a single ancestral virus that split inside our own lineage. They have very different evolutionary backstories.
HSV-1 appears to be the product of straightforward co-divergence. When the ancestors of humans and the ancestors of chimpanzees split into separate lineages around six million years ago, the herpes simplex virus that infected their common ancestor split with them. The human lineage kept its version (HSV-1) and the chimpanzee lineage kept its version (chimpanzee herpesvirus, or ChHV). Molecular analyses estimate the most recent common ancestor of HSV-1 and ChHV at about 6.2 million years ago, right in line with the host divergence date.6Molecular Biology and Evolution. Evolutionary Origins of Human Herpes Simplex Viruses 1 and 2
HSV-2 tells a completely different story. Rather than co-diverging with our lineage, it crossed into the human line from the ancestors of modern chimpanzees much more recently, around 1.6 million years ago. Selection-informed models strongly favor a scenario in which proto-HSV-2 was originally a chimpanzee virus that made the leap into an extinct member of the genus Homo.7PubMed Central. Evolutionary Origins of Human Herpes Simplex Viruses 1 and 2 A separate analysis using slightly different methods placed the HSV-1/HSV-2 divergence at about 2.2 million years ago, broadly consistent with this picture even if the exact date shifts depending on the molecular clock used.8PLOS ONE. Using HSV-1 Genome Phylogenetics to Track Past Human Migrations
So humans ended up with two herpes simplex viruses not through a single evolutionary event but through two separate ones: one ancient co-divergence (HSV-1) and one relatively recent cross-species jump (HSV-2). That jump is one of the more extraordinary events in human infectious disease history, and the question of how exactly it happened has generated some creative detective work.
The Paranthropus boisei Hypothesis
If HSV-2 crossed from ancestral chimpanzees into a hominin about 1.6 million years ago, the obvious question is: which hominin? At that time, several hominin species overlapped in Africa, including Homo erectus, Homo habilis, and Paranthropus boisei, a robust, heavy-jawed species often associated with plant-heavy diets but also found in environments where scavenging meat was plausible.
Researchers used network modeling combined with fossil data on habitat overlap, diet, and geographic range to identify the most likely transmission pathway. Their model points to Paranthropus boisei as the most critical intermediate host, the species that likely caught the virus from ancestral chimpanzees and then passed it along to ancestors of Homo sapiens. Homo habilis may have also played a role in the initial transmission from chimpanzees to P. boisei.9PubMed Central. Network analysis of the hominin origin of Herpes Simplex virus 2 from fossil data
The proposed route of transmission wasn’t sexual contact between species (a common misconception when people first hear this story). Instead, the most likely mechanism was butchering or scavenging infected chimpanzee meat. Processing raw meat with or without stone tools would have exposed open cuts and sores to the virus, providing a straightforward path for cross-species infection. Tropical refugia during hot, dry periods may have forced chimpanzees, P. boisei, and H. habilis into closer contact at the margins of forest and savanna habitats, increasing opportunities for this kind of transmission.10Virus Evolution. Network analysis of the hominin origin of Herpes Simplex virus 2 from fossil data – Section: 4. Discussion
It is worth emphasizing that this is a modeled reconstruction, not direct proof. We can’t sequence HSV-2 from Paranthropus boisei fossils. But the model is grounded in real ecological and paleontological data, and it provides a plausible, testable scenario for one of the most unusual cross-species viral events in human prehistory.
Ancient DNA and the Neolithic Shake-Up
Molecular clocks give us deep-time estimates, but ancient DNA (aDNA) from archaeological remains has recently added a closer-range lens. Researchers have recovered full HSV-1 genomes from European remains dating between the 3rd and 17th centuries CE, and by comparing these ancient genomes to modern ones, they uncovered something unexpected: the diversity of HSV-1 strains circulating in Eurasia today appears to be surprisingly young, dating back only about 5,000 years.11PubMed Central. Ancient herpes simplex 1 genomes reveal recent viral structure in Eurasia
Extrapolating those rates to a global dataset including African lineages pushes the age of all currently sampled HSV-1 diversity to about 5,300 years, coinciding with the late Neolithic period and the Bronze Age migrations that dramatically reshuffled human populations across Eurasia.12Genome Biology and Evolution. An Adagio for Viruses, Played Out on Ancient DNA – Section: Case Study 2: HSV-1 The implication is striking: even though HSV-1 has been with humans for millions of years, the particular strains circulating today largely replaced older lineages during a period of massive population change. Dense population mixing during migrations, new trade routes, and possibly changing social practices like kissing (which became more common in some cultures during this period) may have given certain viral lineages a competitive advantage that allowed them to sweep through and displace earlier variants.
This is a useful corrective to the assumption that “ancient virus” means “unchanging virus.” HSV-1 has been constantly evolving, and major human demographic events have left clear signatures in its genome just as they have in our own.
HSV-1 and HSV-2 Have Swapped Genes
Because HSV-1 and HSV-2 both infect humans and can occasionally infect the same cells, there have been opportunities for the two viruses to recombine, essentially trading chunks of their genomes. Recombination within HSV-1 genomes appears to have occurred frequently throughout the virus’s history.13PubMed Central. Evolution and diversity in human herpes simplex virus genomes More surprisingly, researchers have identified at least four fragments of HSV-1 DNA that have been incorporated into HSV-2 genomes through ancient recombination events, each containing changes that alter the protein sequence.14Molecular Biology and Evolution. Ancient Recombination Events between Human Herpes Simplex Viruses
This inter-species gene swapping matters because it can change how the virus interacts with the immune system or how it replicates. It also complicates any attempt to draw a neat, clean family tree for these viruses: their evolutionary history is not a simple branching tree but a network with occasional cross-links between branches.
Why Latency Made Herpesviruses So Successful
One reason herpesviruses have persisted for hundreds of millions of years is their ability to go latent. HSV-1, for example, establishes lifelong infection by hiding inside sensory neurons. During latency, the virus produces essentially no viral proteins, which means the infected neuron looks normal to the immune system. The virus is widely understood to be maintained in a quiescent state enforced by the neuron itself, periodically reactivating to produce new virus particles that can spread to new hosts.15PubMed. Immune control of herpes simplex virus during latency
This strategy is central to the virus’s evolutionary success. A virus that kills its host quickly runs out of transmission opportunities. A virus that hides indefinitely and reactivates periodically can spread across a host’s entire social lifespan. For a virus co-evolving with long-lived primates and their predecessors, latency is an ideal persistence mechanism. It also means that every new host species a herpesvirus managed to colonize became a permanent reservoir, because the virus didn’t just infect and leave; it stayed for life and for lineages.
The Immune Arms Race
Millions of years of co-evolution have left marks on both sides. Human leukocyte antigens (HLA), the molecules on cell surfaces that present pieces of foreign proteins to the immune system, are among the most genetically diverse regions in the human genome. Herpesviruses, with their uniquely ancient relationship with our species, are thought to be one of the major drivers of that diversity. The co-evolutionary pressure runs both ways: as HLA diversity increases, viruses face selection to evade those immune molecules, and as viruses evolve evasion strategies, hosts with novel HLA variants gain a survival advantage.16PubMed Central. The impact of HLA polymorphism on herpesvirus infection and disease
Recent work has shown that this arms race plays out differently depending on which stage of infection the virus is in. During active (lytic) infection, herpesvirus proteins that can be recognized by HLA molecules tend to be conserved, meaning the virus can’t easily change them without a fitness cost. But during latency, the opposite is true: proteins expressed during latent infection show increased diversity in the regions that HLA molecules recognize, suggesting the virus is under strong pressure to dodge immune detection specifically during the phase when it’s trying to hide. Some evidence even suggests that Epstein-Barr virus strains have adapted to the local HLA environment of the human populations they infect, with less efficient recognition of local viral isolates by the most common local HLA types.17PubMed Central. Human herpesvirus diversity is altered in HLA class I binding peptides
Chickenpox, Epstein-Barr, and Other Co-Travelers
HSV-1 and HSV-2 get the most attention in origin discussions, but humans harbor at least nine herpesviruses in total, and most of them have their own co-evolutionary stories. Varicella-zoster virus (VZV), the cause of chickenpox and shingles, appears to have co-evolved in simians, apes, and hominins in Africa. When anatomically modern humans first crossed out of Africa roughly 60,000 years ago, VZV traveled with them, tucked away in the nerve cells of their spinal ganglia.18PubMed Central. Pangaea and the Out-of-Africa Model of Varicella-Zoster Virus Evolution and Phylogeography The geographic distribution of VZV strains today still reflects those ancient migration routes.
Epstein-Barr virus (EBV) belongs to the gammaherpesvirus branch, which, as noted earlier, has a more complex evolutionary picture. The lymphocryptovirus group that includes EBV does show co-speciation with primate hosts at broad scales, with the deepest split separating Old World and New World primate lineages. But some viral lineages within this group appear to have originated through interspecies transfer rather than simple co-divergence, making the gammaherpesvirus tree harder to interpret than the alpha branch’s relatively clean history.19PubMed. Lymphocryptovirus phylogeny and the origins of Epstein-Barr virus Gammaherpesviruses in general are considered host-specific and co-divergent with their hosts over long timescales, but the exceptions are real and important.20PubMed Central. Bats, Primates, and the Evolutionary Origins and Diversification of Mammalian Gammaherpesviruses
Fossil Viruses in Primate Genomes
Herpesviruses are DNA viruses with very large genomes, and they replicate inside the cell nucleus. Occasionally, chunks of viral DNA get accidentally integrated into the host’s chromosomes, and if that happens in a reproductive cell, the viral fragment gets passed to offspring. These endogenous viral elements, essentially molecular fossils, have been found for many virus families but were long thought to be absent for herpesviruses, probably because their genomes are so large that stable integration seemed unlikely.
That assumption was overturned when researchers discovered the first endogenous herpesvirus embedded in the genome of the Philippine tarsier. The fragment belongs to the roseolovirus genus (a betaherpesvirus group related to human herpesvirus 6) and is heavily degraded, flanked by unambiguous host DNA, and clearly integrated rather than just an active infection. Its discovery proves that a genomic fossil record of herpesviruses does exist, even if it is sparse.21PLoS Genetics. The First Endogenous Herpesvirus, Identified in the Tarsier Genome, and Novel Sequences from Primate Rhadinoviruses and Lymphocryptoviruses Tarsiers split from other primates over 55 million years ago, so this integration event is ancient and provides an independent confirmation that herpesviruses were infecting primates deep in evolutionary time.
When Herpes Crosses Species Boundaries Today
The HSV-2 cross-species jump 1.6 million years ago is not just a historical curiosity. Herpesvirus host-switching continues to occur, and one case is a genuine modern public health concern. B virus (Macacine alphaherpesvirus 1) is the herpes simplex equivalent that circulates in Asian macaques. Most macaques carry B virus without showing any symptoms, just as most humans carry HSV-1 without serious disease. But when B virus jumps into humans, the outcome can be catastrophic: before antiviral drugs were available, the fatality rate exceeded 70%, typically from encephalomyelitis.22PubMed Central. B-virus (Cercopithecine herpesvirus 1) infection in humans and macaques: potential for zoonotic disease
Human infections with B virus are rare, largely because they require direct contact with macaque bodily fluids, most commonly through bites or scratches in laboratory or wildlife settings. But the pattern is instructive: a herpesvirus that is harmless in its co-evolved host can be devastating in a new one. That asymmetry is a direct consequence of the co-evolutionary history described above. Millions of years of mutual adaptation between a virus and its natural host produce a stable truce; in a novel host that hasn’t had that evolutionary conversation, the immune response is poorly calibrated and the virus may behave in unpredictable, destructive ways. The ongoing international trade in macaques has raised concerns about the potential for broader zoonotic spillover of B virus, though documented cases remain uncommon.23One Health. Herpes B virus and the neglected risk of zoonotic spillover
This dynamic reframes the story of HSV-2’s origin. The fact that proto-HSV-2 managed to jump from chimpanzees into a hominin and become a mild, persistent infection rather than a lethal one was not guaranteed. It required enough biological compatibility between the new host and the virus for a stable relationship to eventually develop. Given what we know about B virus, our ancestors were fortunate that the outcome was cold sores and genital blisters rather than something far worse.