The study investigated the impact of dietary montmorillonite on the growth performance, intestinal mucosal barrier, and microbial community in weaned piglets with control group (CON) and dietary supplementation of 0.2% montmorillonite (0.2% M). Compared with the CON group, 0.2% M feed in the diet increased the average daily gain (ADG) on days 15–35 and day 1–35 and the average daily feed intake on days 1–35 (ADFI) (0.05 < P < 0.1). Besides, higher villus height of the duodenum and jejunum and lower crypt depth of duodenum and colon were revealed in the 0.2% M group than in the CON group (P < 0.05). Moreover, the V/C (ratio of the villus height and crypt depth) in the 0.2% M group was increased compared to that in the CON group both from the duodenum and ileum (P < 0.05). The relative mRNA expression of mucin-1, ITGB1 (β1-integrins), and PKC (protein kinase C) of ileum in the 0.2% M group were upregulated (P < 0.05) compared to that in the CON group. The digesta sample of ileum from piglets in the 0.2% M group contained greater (P < 0.05) intestinal bacterial diversity and abundances of probiotics, such as Streptococcus, Eubacterium_rectale_group, and Lactobacillus, which could promote the synthesis of carbon-containing biomolecules. Overall, dietary supplementation of 0.2% M was shown to have a tendency to improve the growth performance of weaned piglets and may enhance their intestinal mucosal barrier function via altering the gut microbiota.