To investigate the therapeutic effects of Xingpi Yanger Granules combined with Western medicine on dyspepsia in children and its effects on immune function.Methods:A total of 110 children with dyspeptic diarrhea admitted to department of pediatric clinic of Kunming Children's Hospital from March 2017 to June 2018 were enrolled in the observation group and the control group according to the random number table method.The control group received routine treatment (montmorillonite powder + multivitamin B tablets),and the children in the observation group were treated with Xingpi Yanger Granules combined with Western medicine (Xingpi Yanger Granules + Clostridium butyricum).The total effective rate,the time of improvement of clinical symptoms,the changes of immune function indexes before and after treatment (cluster of differentiation 3+ (CD3+) CD4+,CD8+,CD4+/CD8+) and the incidence of adverse reactions were compared between the two groups.Results:The total effective rate of treatment of children in the observation group was 94.5% (52/55) higher than that of 81.8% (45/55) in control group (P<0.05).The improvement time of symptoms such as stool traits,diarrhea,bloating and fever in the observation group They were significantly shorter than the control group (P<0.05).Before treatment,the immune function indexes of 2 groups of children were not statistically significant (P>0.05).After treatment,CD3+,CD4+,CD8+,CD4+/CD8+ of children in the 2 groups were improved,but the observation group was significantly better than the control group,while the CD8+ level was lower than the control group (P<0.05).The incidence of adverse reactions in the observation group was 5.5% (3/55),and that in the control group was 9.1% (5/55) (P>0.05).Conclusion:Xingpi Yanger Granule combined with western medicine is effective in the treatment of dyspepsia in children with diarrhea and can significantly improve the cellular immunological function of children.It is safe and worthy of clinical application.