The deep terrestrial biosphere harbours a substantial fraction of Earth's biomass and remains understudied compared with other ecosystems. Deep biosphere life primarily consists of bacteria and archaea, yet knowledge of their co-occurring viruses is poor. Here, we temporally catalogued viral diversity from five deep terrestrial subsurface locations (hydraulically fractured wells), examined virus-host interaction dynamics and experimentally assessed metabolites from cell lysis to better understand viral roles in this ecosystem. We uncovered high viral diversity, rivalling that of peatland soil ecosystems, despite low host diversity. Many viral operational taxonomic units were predicted to infect Halanaerobium, the dominant microorganism in these ecosystems. Examination of clustered regularly interspaced short palindromic repeats-CRISPR-associated proteins (CRISPR-Cas) spacers elucidated lineage-specific virus-host dynamics suggesting active in situ viral predation of Halanaerobium. These dynamics indicate repeated viral encounters and changing viral host range across temporally and geographically distinct shale formations. Laboratory experiments showed that prophage-induced Halanaerobium lysis releases intracellular metabolites that can sustain key fermentative metabolisms, supporting the persistence of microorganisms in this ecosystem. Together, these findings suggest that diverse and active viral populations play critical roles in driving strain-level microbial community development and resource turnover within this deep terrestrial subsurface ecosystem.