Identifying microbes responsible for particular environmental functions is challenging, given that most environments contain an uncultivated microbial diversity. Here we combined approaches to identify bacteria expressing genes relevant to catabolite flow and to locate these genes within their environment, in this case the gut of a "lower," wood-feeding termite. First, environmental transcriptomics revealed that 2 of the 23 formate dehydrogenase (FDH) genes known in the system accounted for slightly more than one-half of environmental transcripts. FDH is an essential enzyme of H 2 metabolism that is ultimately important for the assimilation of lignocellulose-derived energy by the insect. Second, single-cell PCR analysis revealed that two different bacterial types expressed these two transcripts. The most commonly transcribed FDH in situ is encoded by a previously unappreciated deltaproteobacterium, whereas the other FDH is spirochetal. Third, PCR analysis of fractionated gut contents demonstrated that these bacteria reside in different spatial niches; the spirochete is free-swimming, whereas the deltaproteobacterium associates with particulates. Fourth, the deltaproteobacteria expressing FDH were localized to protozoa via hybridization chain reaction-FISH, an approach for multiplexed, spatial mapping of mRNA and rRNA targets. These results underscore the importance of making direct vs. inference-based genespecies associations, and have implications in higher termites, the most successful termite lineage, in which protozoa have been lost from the gut community. Contrary to expectations, in higher termites, FDH genes related to those from the protozoan symbiont dominate, whereas most others were absent, suggesting that a successful gene variant can persist and flourish after a gut perturbation alters a major environmental niche.acetogenesis | RNA-Seq | microfluidic digital PCR