N-butylphthalide (NBP) is a monomeric compound extracted from natural plant celery seeds, whether intestinal microbiota alteration can modify its pharmacokinetics is still unclear. The purpose of this study is to investigate the effect of intestinal microbiota alteration on the pharmacokinetics of NBP and its related mechanisms. After treatment with antibiotics and probiotics, plasma NBP concentrations in SD rats were determined by high-performance liquid chromatography-tandem mass spectrometry (HPLC-MS/MS). The effect of intestinal microbiota changes on NBP pharmacokinetics was compared. Intestinal microbiota changes after NBP treatment were analyzed by 16S rRNA sequencing. Expressions of CYP3A1 mRNA and protein in the liver and small intestine tissues under different intestinal flora conditions were determined by qRT-PCR and Western Blot. KEGG analysis was used to analyze the effect of intestinal microbiota changes on metabolic pathways. Compared to the control group, the values of Cmax, AUC0-8, AUC0-∞, t1/2 in the antibiotic group increased by 56.1% (P<0.001), 56.4% (P<0.001), 53.2% (P<0.001), and 24.4% (P<0.05), respectively. In contrast, the CL and Tmax values decreased by 57.1% (P<0.001) and 28.6% (P<0.05), respectively. Treatment with antibiotics could reduce the richness and diversity of the intestinal microbiota. CYP3A1 mRNA and protein expressions in the small intestine of the antibiotic group were 61.2% and 66.1% of those of the control group, respectively. CYP3A1 mRNA and protein expressions in the liver were 44.6% and 63.9% of those in the control group, respectively. There was no significant change in the probiotic group. KEGG analysis showed that multiple metabolic pathways were significantly down-regulated in the antibiotic group. Among them, the pathways of drug metabolism, bile acid biosynthesis and decomposition, and fatty acid synthesis and decomposition were related to NBP biological metabolism. Antibiotic treatment could affect the intestinal microbiota, decrease CYP3A1 mRNA and protein expressions and increase NBP exposure in vivo by inhibiting pathways related to NBP metabolism.