||Interactions among microbial symbionts have multiple roles in the maintenance of insect–microbe symbiosis. However, signals mediating microbial interactions have been scarcely studied. In the classical model system of bark beetles and fungal associates, fungi increase the fitness of insects. However, not all interactions are mutualistic, some of these fungal symbionts compete for sugars with beetle larvae. How this antagonistic effect is alleviated is unknown, and recent research suggests potential roles of bacterial symbionts. Red turpentine beetle (RTB), Dendroctonus valens LeConte, is an invasive pest in China, and it leads to wide spread, catastrophic mortality to Chinese pines. In the symbiotic system formed by RTB, fungi and bacteria, volatiles from predominant bacteria regulate the consumption sequence of carbon sources D-pinitol and D-glucose in the fungal symbiont Leptographium procerum, and appear to alleviate the antagonistic effect from the fungus against RTB larvae. However, active components of these volatiles are unknown. We detected 67 volatiles by Gas Chromatography-Mass Spectrometer (GC-MS). Seven of them were identified as candidate chemicals mediating bacteria-fungus interactions, among which ammonia made L. procerum consume its secondary carbon source D-pinitol instead of its preferred carbohydrate D-glucose. In conclusion, ammonia regulated the consumption sequence of these two carbon sources in the fungal symbiont.