Tourette syndrome (TS) is a complex neurodevelopmental disorder characterized by vocal and motor tics. Recurrent respiratory tract infection (RRTI), a commonly occurring disease in childhood, correlates with recurrent and severe course of tic symptoms. Qiangzhi decoction (QZD) is a traditional Chinese medicine that can alleviate TS symptoms while reducing the recurrence of RRTI. However, the mechanism of QZD on TS and RRTI remains unclear. This study aimed to determine the treatment effect of QZD on comorbid TS and RRTI by integrating ultrahigh-performance liquid chromatography mass spectrometry (UPLC-MS), network pharmacology, and intestinal flora analysis. The components of QZD were first identified by UPLC-quadrupole (Q)-orbitrap-MS/MS. The mechanism of QZD on comorbid RRTI and TS was investigated by a series of network pharmacological methods, including target prediction and bioinformatics analysis. Finally, a comorbid TS and RRTI rat model was established by intraperitoneal injection of 3,3-iminodipropionitrile (IDPN), cyclophosphamide (CTX), and lipopolysaccharide (LPS). Alteration of gut microbiota in the alleviation of TS and RRTI by QZD was investigated via intestinal flora analysis. The results of UPLC-Q-orbitrap-MS/MS showed that QZD had 96 types of chemical components. The network pharmacology results demonstrated that targets of QZD involved in the treatment of TS and RRTI involved 1045 biological processes (BPs), 109 cellular components (CCs), and 133 molecular functions (MFs), including synaptic and transsynaptic signaling, chemical synaptic transmission, neurotransmitter receptor activity, G protein-coupled amine receptor activity, and serotonin receptor activity, among others. Firmicutes, Bacteroidetes, Coprococcus, and Lachnospiraceae played crucial roles in gut microbiota of a QZD-treated comorbid TS and RRTI model. Our results revealed QZD provided a multicomponent, multitarget, and multipathway synergistic treatment of comorbid TS and RRTI.