The CpG oligodeoxynucleotides (CpG ODNs) reportedly possess the capacity to strengthen immunity in mammals. This experiment was conducted to evaluate the impact of dietary supplementation with 17 types of CpG ODNs on intestinal microbiota diversity, antioxidant capacity, and immune-related gene expression profiles of the shrimpLitopenaeus vannamei. Diets including 50 mg kg-1CpG ODNs wrapped in egg whites were prepared and divided into 17 different groups, with 2 control groups (normal feed and feed with egg whites). These CpG ODNs supplemented diets and the control diets were fed toL. vannamei(5.15 ± 0.54 g) three times daily at 5%-8% shrimp body weight for three weeks. The results of consecutive detection of intestinal microbiota by 16S rDNA sequencing indicated that 11 of the 17 types of CpG ODNs significantly enhanced intestinal microbiota diversity, increased the populations of several probiotic bacteria, and activated possible mechanisms relevant to diseases. The immune-related genes expression and antioxidant capacity in hepatopancreas further demonstrated that the 11 types of CpG ODNs effectively improved the innate immunity of shrimp. Additionally, histology results showed that the CpG ODNs in the experiment did not damage the tissue structure of hepatopancreas. The results suggest that CpG ODNs could be used as a trace supplement to improve the intestinal health and immunity of shrimp.