Objective: Based on data mining, to explore the compatibility law and application characteristics of prescriptions containing Sanguisorbae Radix. Methods: Taking "Sanguisorbae Radix" or "Sanguisorbae Radix root" as keywords, collecting prescriptions on Yaozhi.com and related classic books; Microsoft Office Excel 2017, VOSviewer1.6.15, IBM SPSS Modeler 18.0, IBM SPSS Statistics 25.0 and other software are utilized to perform frequency statistics, overall drug usage analysis,nature and flavor analysis, association rule analysis, cluster analysis, etc. Results: 445 prescriptions are included in this study, which involves a total of 329 traditional Chinese medicine. Among them, traditional Chinese medicine such as Angelicae Sinensis Radix; Glycyrrhiza uralensis Fisch; Astragali Radix; Paeoniae Radix Alba; Coptidis Rhizoma are often in combination with Sanguisorbae Radix. The medicinal properties of traditional Chinese medicine combined with Sanguisorbae Radix are mainly cold and warm; while the medicinal tastes are more bitter, pungent and sweet; in addition, the meridian generally belongs to liver, lung and spleen. While Sanguisorbae Radix is often compatible with traditional Chinese medicine of tonic, hemostasis, and heat-clearing. It is mostly applied to treat dysentery, hemorrhoids, metrorrhagia disorder. In the treatment of dysentery, traditional Chinese medicine such as Angelicae Sinensis Radix; Coptidis Rhizoma; Scutellariabaicalensis Georgi; Glycyrrhiza uralensis Fisch; Saussurea lappa are often compatible with Sanguisorbae Radix. While traditional Chinese medicine such as Sanguisorbae Radix, Angelicae Sinensis Radix; Sophorae Flos; Aurantii Fructus; Scutellariabaicalensis Georgi are the core compatibility in the treatment of hemorrhoids. The results of cluster analysis show that high-frequency traditional Chinese medicine in the treatment of the two diseases can be grouped into 9 groups and 6 groups respectively. Conclusion: Sanguisorbae Radix is often in combination with traditional Chinese medicine of invigorating deficiency, hemostasis, and clearing away heat, which regularly have the effects of clearing away heat and cooling blood, purging fire and detoxification, astringing sores and promoting muscle growth. It is mostly applied to treat dysentery, hemorrhoids, and metrorrhagia disorder in clinical application.