Antibiotic-associated diarrhea (AAD) is a common side effect of antibiotic therapy, characterized by intestinal inflammation which reduces the quality of life of patients. Xianglian Pill (XLP) has long been used to treat abdominal pain, diarrhea, bacillary dysentery and enteritis. Studies found that XLP has curative effect on AAD; however, the chemical constituents and mechanism of XLP have not been fully elucidated because of the lack of in vitro and in vivo studies. In this study, ultra-high performance liquid chromatography mass spectrometry method (UPLC-Q-Exactive-Orbitrap-HRMS) was used to examine the components of the XLP. Then, the binding between active compounds and the key targets was studied using network pharmacology and molecular docking. A comparative tissue distribution study was established for the simultaneous determination of the 10 active components in healthy and AAD mouse models. Forty-six components were characterized from XLP. According to the network pharmacology degree value, a prediction was made that encompassed 42 components and 14 core targets, which were intricately involved in crucial biological pathways, such as the AGE-RAGE signaling, cellular senescence, and MAPK signaling. Tissue distribution analysis showed that the 10 components were widely distributed in the heart, liver, spleen, lungs, kidneys, small intestine, and large intestine of mice, with varying concentrations in healthy and AAD mice. Molecular docking analysis also indicated that the active compounds in the tissue distribution could bind tightly to key targets of network pharmacological studies. This study provides a reference for further investigations of the relationships between the chemical components and pharmacological activities of XLP.