Obesity, a key contributor to metabolic disorders, necessitates an in-depth understanding of its pathogenesis and prerequisites for prevention. Guangxi Bama miniature pig (GBM) offers an apt model for obesity-related studies. In this research, we used transcriptomics and 16S rRNA gene sequencing to discern the differentially expressed genes (DEGs) within intestinal (jejunum, ileum, and colon) tissues and variations in microbial communities in intestinal contents of GBM subjected to normal diets (ND) and high-fat, high-carbohydrate diets (HFHCD). After a feeding duration of 26 weeks, the HFHCD-fed experimental group demonstrated notable increases in backfat thickness, BMI, abnormal blood glucose metabolism, and blood lipid levels alongside the escalated serum expression of pro-inflammatory factors and a marked decline in intestinal health status when compared to the ND group. Transcriptomic analysis revealed a total of 1669 DEGs, of which 27 had similar differences in three intestinal segments across different groups, including five immune related genes: COL6A6, CYP1A1, EIF2AK2, NMI, and LGALS3B. Further, we found significant changes in the microbiota composition, with a significant decrease in beneficial bacterial populations within the HFHCD group. Finally, the results of integrated analysis of microbial diversity with transcriptomics show a positive link between certain microbial abundance (Solibacillus, norank_f__Saccharimonadaceae, Candidatus_Saccharimonas, and unclassified_f__Butyricicoccaceae) and changes in gene expression (COL6A6 and NMI). Overall, HFHCD appears to co-contribute to the initiation and progression of obesity in GBM by aggravating inflammatory responses, disrupting immune homeostasis, and creating imbalances in intestinal flora.