BackgroundShizao decoction (SZD) consisted of Euphorbia kansui (EK), Euphorbia pekinensis (EP), Daphne genkwa (DG), and Fructus Jujubae (FJ) is a classic Chinese herbal medicine formula for treating malignant ascites, which is closely related to the modulation of gut microbiota by our previous study. For water-expelling members (WEM) including EK, EP, and DG may have side effects on the intestine, FJ is employed for detoxification and effectivity enhancement of WEM. However, the underlying mechanism for the compatibility of WEM and FJ is still unknown. PurposeTo investigate the effect of the compatibility of WEM with FJ in SZD on malignant ascites and elucidate the potential mechanism from the perspective of the modulation of gut microbiota and related metabolic function. MethodsQualitative and quantitative evaluation of main components was conducted for comprehensive characterization of SZD and WEM. The effect of WEM and SZD was compared on malignant ascites effusion (MAE) rats. The intestinal injury was evaluated by HE staining and oxidative damage. Ascites weight, urine amount, fecal water content, the expression of aquaporins, and cytokines in ascites (IL-6, VEGF, and TNF-α) were measured to estimate the water-expelling activity. The intestinal flora was detected by 16S rDNA sequencing and the content of fecal short-chain fatty acids (SCFAs) was analyzed using gas chromatography-mass spectrometry. Pseudo-germ-free (PGF) and fecal bacteria transplantation animal experiments were subsequently employed to validate this finding. The fecal metabolomics and correlation analysis were finally conducted to explore the related metabolic changes. Results51 and 33 components were identified in SZD and WEM, respectively. Compared to WEM alone, the compatibility with FJ remarkably reduced intestinal oxidative damage in MAE rats. Ascites was also relieved by downregulating the expression of AQP3 in the colon and decreasing the levels of IL-6, TNF-α and VEGF in ascites. The diversity of gut microbiota was reversed with an increase in Lactobacillus and Clostridia_UCG-014 while a decrease in Colidextribacter. Under the PGF condition, compatibility of WEM with FJ failed to reduce intestinal injury and alleviate MA significantly, but this effect was further enhanced after FMT. 23 potential fecal metabolites were finally identified. Correlation analysis further showed that Lactobacillus and Clostridia_UCG-014 were positively correlated with SCFAs and l-tryptophan. Colidextribacter was negatively correlated with thymidine but positively correlated with ursodeoxycholic acid and deoxycholic acid. ConclusionFJ cooperated with WEM reduced intestinal injury and alleviated malignant ascites by modulating gut microbiota, short-chain fatty and tryptophan metabolism. These findings provide a scientific basis for the clinical application of FJ from SZD and the safe usage of SZD.