Objective To optimize the extraction process of Xuetong capsules and establish its quality control method. Methods The extraction process was optimized by orthogonal experiment using ethanol reflux method to investigate the effects of different factors on diphenylstilbene, aloin and extraction yield. The content of 5 anthraquinone compounds in Xuetong capsule was determined by HPLC. Results The optimal extraction process was to add 10 times ethanol, with an ethanol concentration of 70%, and extract 3 times, each time for 1 h; 5 components had a good linear relationship with peak area within a certain concentration range, r>0.999 7; The range of sample recovery rate was 93.66%-96.85%, RSD range of 1.48%-1.66%. The content determination results of the 5 components in three batches of Xuetong capsules were (0.632-0.641), (0.660-0.681), (1.968-1.991), (2.547-2.580), and (1.076-1.101) mg/g. Conclusion The method was accurate, reproducible, and highly feasible, which could be references for producing and improving the quality control standards of Xuetong capsules.