Abstract: Objective: To summarize the medication rules for treating constipation by famous doctors throughout history based on data mining technology and provide a reference for clinical treatment of constipation. Methods: Effective experienced prescriptions for treating constipation by famous doctors throughout history in Revised Ancient and Modern Famous Doctors Clinical Evidence: Diarrhea and Constipation Volume were collected and a prescription medication database was established via Excel 2019. The Ancient and Modern Medical Case Cloud Platform (V2.3.8), VOSviewer, Cytoscape 3.9.0 software were used for medication frequency analysis, medicinal property analysis, association rule analysis, cluster analysis, and complex network analysis to study the medication rules for treating constipation. Results:A total of 191 prescriptions involving 208 Chinese medicinals with 1 565 medication frequencies were included. The high-frequency Chinese medicinals mainly included Angelicae Sinensis Radix,Cannabis Fructus, Rhei Radix et Rhizoma, Cistanches Herba, Citri Reticulatae Pericarpium, Glycyrrhizae Radix et Rhizoma and Rehmanniae Radix. The medicinal properties were mainly warm,cold,and neutral;the medicinal flavors were mainly sweet,bitter,and acrid;and the channel entries were mainly related to the five zang-organs,stomach channel,and large intestine channel. The high-frequency Chinese medicinals were mainly categorized into deficiency-supplementing medicinals (26.26%), qi-rectifying medicinals (12.72%), heat-clearing medicinals (11.31%), purgative medicinals (11.05%),and medicinals for dissolving phlegm,easing cough,and relieving panting (8.56%). Cluster analysis showed that high-frequency Chinese medicinals could be clustered into five categories. Association rule analysis suggested that Magnoliae Officinalis Cortex-Rhei Radix et Rhizoma, Pruni Semen-Cistanches Herba and Cistanches Herba-Angelicae Sinensis Radix were commonly used medicinal pairs. Conclusion:The Chinese medicinals used by famous doctors throughout history in Revised Ancient and Modern Famous Doctors Clinical Evidence: Diarrhea and Constipation Volume for treating constipation mainly focus on warming the kidney and boosting essence,strengthening the spleen and rectifying qi, and moistening the intestines and promoting defecation, which can provide a basis for clinical prescription and medication.