Emerging nanopesticides are gradually gaining widespread application in agriculture due to their excellent properties, but their potential risks to pollinating insects are not fully understood. In this study, lambda-cyhalothrin nanocapsules (LC-NCs) were constructed by electrostatic self-assembly method with iron mineralization optimization, and their effects on bee gut microbial communities and host immune-related factors were investigated. Microbiome sequencing revealed that LC-NCs increase the diversity of gut microbial communities and reduce the complexity of network features, disrupting the overall structure of the microbial communities. In addition, LC-NCs also had systemic effects on the immune response of bees, including increased activity of SOD and CAT enzymes and expression of their genes, as well as downregulation of Defensin1. Furthermore, we noticed that the immune system of the host was activated simultaneously with a rise in the abundance of beneficial bacteria in the gut. Our research emphasizes the importance of both the host and gut microbiota of holobiont in revealing the potential risks of LC-NCs to environmental indicators of honey bees, and provides references for exploring the interactions between host-microbiota systems under exogenous stress. At the same time, we hope that more research can focus on the potential impacts of nanopesticides on the ecological environment.