Gammaherpesviruses (γHVs) are generally considered host specific and to have codiverged with their hosts over millions of years. This tenet is challenged here by broad-scale phylogenetic analysis of two viral genes using the largest sample of mammalian γHVs to date, integrating for the first time bat γHV sequences available from public repositories and newly generated viral sequences from two vampire bat species (Desmodus rotundus and Diphylla ecaudata). Bat and primate viruses frequently represented deep branches within the supported phylogenies and clustered among viruses from distantly related mammalian taxa. Following evolutionary scenario testing, we determined the number of host-switching and cospeciation events. Cross-species transmissions have occurred much more frequently than previously estimated, and most of the transmissions were attributable to bats and primates. We conclude that the evolution of the Gammaherpesvirinae subfamily has been driven by both cross- species transmissions and subsequent cospeciation within specific viral lineages and that the bat and primate orders may have potentially acted as superspreaders to other mammalian taxa throughout evolutionary history.