Feeding laying hens with black soldier fly larval (BSFL) meal improves their performance. However, the beneficial mechanism of BSFL meals in improving the performance of laying hens remains unclear. This study investigated the effects of the BSFL diet on liver metabolism, gut physiology, and gut microbiota in laying hens. Eighty-seven Julia hens were randomly assigned to three groups based on their diets and fed maize grain-and soybean meal-based diets mixed with either 3% fish meal (control diet), 1.5% fish and 1.5% BSFL meals, or 3% BSFL meal for 52 weeks. No significant differences were observed in biochemical parameters, hepatic amino acid and saturated fatty acid contents, intestinal mucosal disaccharidase activity, and intestinal morphology between BSFL diet-fed and control diet-fed laying hens. However, the BSFL diet significantly increased the abundance of acetic and propionic acid-producing bacteria, caecal short-chain fatty acids, and modified the caecal microbial pathways that are associated with bile acid metabolism. These findings indicate that consuming a diet containing BSFL meal has minimal effects on plasma and liver nutritional metabolism in laying hens; however, it can alter the gut microbiota associated with short-chain fatty acid production as well as the microbial pathways involved in intestinal fat metabolism. In conclusion, this study provides evidence that BSFL can enhance enterocyte metabolism and gut homeostasis in laying hens.