This study was conducted to comprehensively investigate the beneficial effects of a mannan oligosaccharide product (hereinafter called MOS) on Litopenaeus vannamei and optimum level of MOS. Five isonitrogenous and isolipid diets were formulated by adding 0%, 0.02%, 0.04%, 0.08%, and 0.16% MOS in the basal diet. Each diet was randomly fed to one group with four replicates of shrimp in an 8-week feeding trial. The results showed that dietary MOS improved the growth performance and the ability of digestion of shrimp. Dietary MOS significantly increased the activity of total superoxide dismutase, catalase, and glutathione peroxidase and decreased the content of malondialdehyde in plasma of shrimp. Dietary MOS significantly increased the activity of alkaline phosphatase and lysozyme in plasma and the hemocyte counts. Dietary MOS significantly upregulated the expression of Toll, lysozyme, anti-lipopolysaccharide factor, Crustin, and heat shock protein 70 in the hepatopancreas. And dietary MOS significantly upregulated the expression of intestinal mucin-2, mucin-5B, and mucin-19, while it decreased the expression of intestinal mucin-1 and macrophage migration inhibitory factor. Dietary MOS improved the bacterial diversity; increased the abundance of Lactobacillus, Bifidobacterium, Blautia, and Pseudoalteromonas; and decreased the abundance of Vibrio in the intestine. Shrimp fed MOS diets showed lower mortality after being challenged by Vibrio parahaemolyticus. Notably, this study found a decrease in antibiotic resistance genes and mobile genetic elements after MOS supplementation for the first time. The present results showed that diet with MOS supplementation enhanced the organismal antioxidant capacity and immunity, improved intestinal immunity, optimized intestinal microecology, mitigated the degree of antibiotic resistance, and increased the resistance to V. parahaemolyticus in L. vannamei, especially when supplemented at 0.08% and 0.16%.