The communities constituting our microbiotas are emerging as mediators of the health-disease continuum. However, deciphering the functional impact of microbial communities on host pathophysiology represents a formidable challenge, due to the heterogeneous distribution of chemical and microbial species within the gastrointestinal (GI) tract. Herein, we apply imaging mass spectrometry (IMS) to localize metabolites from the interaction between the host and colonizing microbiota. This approach complements other molecular imaging methodologies in that analytes need not be known a priori, offering the possibility of untargeted analysis. Localized molecules within the GI tract were then identified in situ by surface sampling with nanodesorption electrospray ionization Fourier transform ion cyclotron resonance-mass spectrometry (nanoDESI FTICR-MS). Products from diverse structural classes were identified including cholesterol-derived lipids, glycans, and polar metabolites. Specific chemical transformations performed by the microbiota were validated with bacteria in culture. This study illustrates how untargeted spatial characterization of metabolites can be applied to the molecular dissection of complex biology in situ.