Cotton boll weevils, Anthonomus grandis, are omnivorous coleopteran that can feed on diets with different compositions, including recalcitrant lignocellulosic materials. We characterized the changes in the prokaryotic community structure and the hydrolytic activities of A. grandis larvae fed on different lignocellulosic diets. A. grandis larvae were fed on three different artificial diets: cottonseed meal (CM), Napier grass (NG) and corn stover (CS). Total DNA was extracted from the gut samples for amplification and sequencing of the V3-V4 hypervariable region of the 16S rRNA gene. Proteobacteria and Firmicutes dominated the gut microbiota followed by Actinobacteria, Spirochaetes and a small number of unclassified phyla in CM and NG microbiomes. In the CS feeding group, members of Spirochaetes were the most prevalent, followed by Proteobacteria and Firmicutes. Bray-Curtis distances showed that the samples from the CS community were clearly separated from those samples of the CM and NG diets. Gut extracts from all three diets exhibited endoglucanase, xylanase, β-glucosidase and pectinase activities. These activities were significantly affected by pH and temperature across different diets. We observed that the larvae reared on a CM showed significantly higher activities than larvae reared on NG and CS. We demonstrated that the intestinal bacterial community structure varies depending on diet composition. Diets with more variable and complex compositions, such as CS, showed higher bacterial diversity and richness than the two other diets. In spite of the detected changes in composition and diversity, we identified a core microbiome shared between the three different lignocellulosic diets. These results suggest that feeding with diets of different lignocellulosic composition could be a viable strategy to discover variants of hemicellulose and cellulose breakdown systems.