The intestinal microbiota significantly influences the intake, storage, and absorption of nutrients in animals, thereby greatly impacting the growth and development of the animals. Factors such as diet, animal breed, growth stage, and feeding methods may affect variations in the composition of the intestinal microbiota. However, research on the variations in the intestinal microbiota and metabolites of Nanjiang Yellow goats under different feeding methods is still unclear. We measured various serum biochemical indicators and immune biochemical indicators and found that the triglyceride (TC) content in the grazing group (the FMMF) was significantly lower than in the barn-feeding group (the SSMF) (P<0.05). Serum levels of immunoglobulin A (IgA), immunoglobulin G (IgG), and immunoglobulin G (IgM) were higher in the FMMF group. At the phylum level, the most abundant bacteria were Firmicutes, Bacteroidota, and Verrucomicrobiota. At the genus level, the most abundant microbial groups were Christensenellaceae_R-7_group, UCG-005, and Rikenellaceae_RC9_gut_group. Differential metabolite enrichment analysis through KEGG pathways revealed that the most remarkably enriched pathway was "Metabolic pathways," including Steroid hormone biosynthesis and Arachidonic acid metabolism, among others. Analyzed by multi-omics association, we identified notably different microbial features correlated with immune indicators and metabolites after different feeding methods. We observed a significant negative correlation (P<0.05) between the concentrations of serum immune factors interleukin-2 (IL-2), interleukin-4 (IL-4), and g__probable_genus_10. The concentration of IgM in serum showed a highly significant positive correlation (P<0.01) with the relative abundance of g__Erysipelatoclostridium in the intestine. Interestingly, most differential metabolites were significantly associated with intestinal microbiota. This experiment indicates that different feeding methods may influence the diversity and relative abundance of the intestinal microbiota in Nanjiang Yellow goats. The intestinal microbiota is correlated with immune indicators and metabolism, and regulating the diversity and relative abundance of the intestinal microbiota can be a way to adjust metabolism, thereby promoting the healthy growth of the Nanjiang Yellow goats.