Microbial symbionts are becoming increasingly recognized as mediators of many aspects of plant – herbivore interactions. However, the influence of plant chemical defenses on gut associates of insect herbivores is less well understood. We used gypsy moth (Lymantria dispar L.), and differing trembling aspen (Populus tremuloides Michx.) genotypes that vary in chemical defenses, to assess the influence of foliar chemistry on bacterial communities of larval midguts. We evaluated the bacterial community composition of foliage, and of midguts of larvae feeding on those leaves, using next-generation high-throughput sequencing. Plant defense chemicals did not influence the composition of foliar communities. In contrast, both phenolic glycosides and condensed tannins affected the bacterial consortia of gypsy moth midguts. The two most abundant operational taxonomic units were classified as Ralstonia and Acinetobacter. The relative abundance of Ralstonia was higher in midguts than in foliage when phenolic glycoside concentrations were low, but lower in midguts when phenolic glycosides were high. In contrast, the relative abundance of Ralstonia was lower in midguts than in foliage when condensed tannin concentrations were low, but higher in midguts when condensed tannins were high. Acinetobacter showed a different relationship with host chemistry, being relatively more abundant in midguts than with foliage when condensed tannin concentrations were low, but lower in midguts when condensed tannins were high. Acinetobacter tended to have a greater relative abundance in midguts of insects feeding on genotypes with high phenolic glycoside concentrations. These results show that plant defense chemicals influence herbivore midgut communities, which may in turn influence host utilization.