The phyllosphere, which is defined as the parts of terrestrial plants above the ground, is a large habitat for different microorganisms that show a high extent of adaption to their environment. A number of hypotheses were generated by culture-independent functional genomics studies to explain the competitiveness of specialized bacteria in the phyllosphere. In contrast, in situ data at the metabolome level as a function of bacterial colonization are lacking. Here, we aimed to obtain new insights into the metabolic interplay between host and epiphytes upon colonization of Arabidopsis thaliana leaves in a controlled laboratory setting using environmental metabolomics approaches. Quantitative nuclear magnetic resonance (NMR) and imaging high-resolution mass spectrometry (IMS) methods were used to identify Arabidopsis leaf surface compounds and their possible involvement in the epiphytic lifestyle by relative changes in compound pools. The dominant carbohydrates on the leaf surfaces were sucrose, fructose and glucose. These sugars were significantly and specifically altered after epiphytic leaf colonization by the organoheterotroph Sphingomonas melonis or the phytopathogen Pseudomonas syringae pv. tomato, but only to a minor extent by the methylotroph Methylobacterium extorquens. In addition to carbohydrates, IMS revealed surprising alterations in arginine metabolism and phytoalexin biosynthesis that were dependent on the presence of bacteria, which might reflect the consequences of bacterial activity and the recognition of not only pathogens but also commensals by the plant. These results highlight the power of environmental metabolomics to aid in elucidating the molecular basis underlying plantepiphyte interactions in situ.