BackgroundMigraine is widely recognized as the third most prevalent medical condition globally. Tianshu capsule (TSC), derived from “Da Chuan Xiong Fang” of the Jin dynasty, is integral in the clinical treatment of migraine. However, the chemical properties and therapeutic mechanisms of TSC different portions remain unclear. PurposeThis study was designed to investigate the effects of TSC different portions (including small molecular TSCP-SM and polysaccharides TSC-P) on migraine and explore the underlying mechanisms. Study design and methodsFirst of all, migraine rats were established by nitroglycerin injection and treated with TSC, TSC-P, and TSC-SM. ELISA, qPCR, and immunofluorescence were used to evaluate the pharmacological effects on migraine rats. Secondly, UPLC-Q/TOF-MS and GC–-MS were employed to detect the components of TSC-SM. PMP-HPLC, NMR, FT-IR, UV–Vis, AFM, and SEM were used for the chemical profiling of polysaccharides. Thirdly, the metabolic behavior profile of TSC-P was characterized by oral administrated fluorescence-labeled TSC-P and detected by NIRF imaging. Finally, the anti-migraine mechanisms were explored by determining the composition of gut microbiota, analyzing colonic short-chain fatty acids (SCFAs), and examining serum tryptophan-related metabolites. ResultsBoth small molecules (45 volatiles and 114 small molecules) and polysaccharides (including Glc, Ara, Gal, and Gal A) have exhibited effectiveness in alleviating migraine, and this efficacy is associated with reduced CGRP and iNOS levels, along with increased β-EP expressions. Further mechanistic exploration revealed that small-molecules exhibited effectiveness in migraine treatment by exerting antioxidative actions, while polysaccharides demonstrated superior therapeutic effects in regulating 5-HT levels. By monitoring the metabolic behavior of polysaccharides with fluorescent labeling, it was observed that TSC-P exhibited poor absorption. Instead, TSC-P demonstrated its therapeutic effects by modulating the aberrations in gut microbiota (including Alloprevotella, Muribaculaceae_ge, and Ruminococcaceae_UCG-005), cecum short-chain fatty acids (such as isobutyric, isovaleric, and valeric acids), and serum tryptophan-related metabolites (including indole-3-acetamide, tryptophol, and indole-3-propionic acid). ConclusionThis research provides innovative insights into chemical composition, metabolic behavior, and proposed anti-migraine mechanisms of TSC from a polarity-based perspective, and pioneering an exploration focused on the polysaccharide components within TSC for the first time.