The intestine is a tubular organ with multiple functions such as digestion absorption and immunity, but the functions of each intestinal segments are different. Intestinal regionalization is necessary for normal physiological function, but it also means the research results obtained at specific sites may not be applicable to other intestinal segments. In order to comprehensively describe the functional changes in the intestine, different intestinal segments and their contents (duodenum, jejunum, ileum, cecum, colon, and rectum) of guinea pigs were collected for RNA seq and 16S rRNA seq, respectively. The results showed differential genes of each intestinal segment mainly involve mucosa, digestion, absorption, and immunity. The gene sets related to fat, bill salts, vitamins, aggregates, amino acids, and water absorption were highly expressed in the small intestine, and the gene sets related to metal ions, nucleotides, and SCFAs were highly expressed in the large intestine. In terms of immunity, the CD8+ T, Th1, eosinophils, pDCs, and natural killer (NK) T cells in the small intestine showed higher scores than those in the large intestine, while the pattern-recognition receptor signaling pathway-related genes are highly expressed in the large intestine. In terms of microbial composition, Proteobacteria and Actinobacteria are abundant in the small intestine, while Firmicutes and Spirochaete are abundant in large intestine. The correlation analysis showed a high correlation between intestinal microorganisms and gene modules related to digestion and absorption. In addition, cross-species analysis showed the SCFA metabolism gene expression trends in human and rodent intestine were different. In conclusion, we analyzed the changes in substance transport, immune and microbial composition between different intestinal segments of guinea pigs, and explored the relationship between intestinal transcriptome and microorganisms, our research will provides a reference for subsequent intestinal-related research.