Based on the R language data mining technology, the medication rules of traditional Chinese medicine(TCM) in the treatment of H-type hypertension were discussed, and the basis and new ideas for the treatment of H-type hypertension with TCM were provided. CNKI, Wanfang, VIP, and SinoMed were searched to collect clinical studies on the treatment of H-type hypertension with TCM. The data were screened, and Excel was used to build a database. Rstudio was used to carry out drug efficacy classification, four Qi and five flavors, meridian homing, frequency of use, correlation, association rules, and clustering analyses of drugs and explore the medication rules of TCM. 191 TCM prescriptions were obtained, and the main syndromes were phlegm-dampness accumulation syndrome, phlegm and blood stasis syndrome, and Yin deficiency and Yang hyperactivity syndrome. A total of 169 kinds of TCM were used, and the frequency was 1 875 times. Among them, the drugs whose single use frequency was more than 20 times were high-frequency medicines, 26 kinds in total. They were Gestrodiae Rhizoma, Poria, Pinelliae Rhizoma, Achyranthis Bidenthis Radix, Glycyrrhizae Radix et Rhizoma, etc. The efficacy of high-frequency medicines was mainly classified as tonic medicines, blood-activating and stasis-removing medicines, liver-relieving wind medicines, and damp-clearing medicines. The four Qi of the drug were mainly warm and flat, and the five flavors were mainly sweet and bitter. The liver meridian and spleen meridian were the main meridians. The association rule analysis obtained a total of 14 groups of commonly used drug combinations, and the correlation analysis obtained 20 drug combinations with a high correlation coefficient. A total of six drug combinations were obtained by cluster analysis. Eight groups of drug pairs were obtained by association rule analysis on H-type hypertension with phlegm-dampness accumulation syndrome. Seven drug combinations with high correlation coefficients were obtained by correlation analysis, and three drug prescriptions were obtained by cluster analysis. The pathological factors of H-type hypertension are mainly phlegm, stasis, and deficiency. The disease site is in the liver, involving the spleen, lungs, and other viscera. The commonly used drugs are Gestrodiae Rhizoma, Poria, Pinelliae Rhizoma, Achyranthis Bidenthis Radix, etc. Banxia Baizhu Tianma Decoction, Tianma Gouteng Decoction, and Buyang Huanwu Decoction are commonly used prescriptions. The medication rules shown in this study can provide certain ideas for the clinical treatment of H-type hypertension with TCM.