Abstract: Objective: To explore the medication rule of using Chinese medicinals to treat chronic prostatitis (CP) with sexual dysfunction based on data mining. Methods:The literatures of clinical on using Chinese medicinals to treat CP with sexual dysfunction were retrieved from CNKI, VIP, Wanfang and CBM. The time period was from the establishment day of the database to November 5, 2023. Excel software was used to make statistics on the usage frequency, natures and flavors, channel entry and effect of the Chinese medicinals; SPSS statistic26 was used for association rule analysis, and SPSS Modeler 18 was used for cluster analysis. Results: A total of 52 literatures were involved, which included 59 Chinese medicinal prescriptions,and 158 kinds of Chinese medicinals. The total frequency of medicinal use was 626 times, and the usage frequency higher than 10 times were included Plantaginis Semen, Bupleuri Radix, Phellodendri Chinensis Cortex, Epimedii Folium, Salviae Miltiorrhizae Radix et Rhizoma, Poria, Glycyrrhizae Radix et Rhizoma, Corni Fructus, Cuscutae Semen and Paeoniae Radix Rubra. The top three medicinal natures were cold,warm and neutral. The top three medicinal flavors were sweet,bitter and acrid. The top three channel entries were the liver,kidney and spleen channels. The top six effect of medicinal types in terms of usage frequency were medicinals for tonifying deficiency, invigorating blood and dissolving stasis, clearing heat, promoting urination and percolating dampness, regulating qi, and astringing. Association rule analysis showed that the combination of Rehmanniae Radix Praeparata, Dioscoreae Rhizoma and Corni Fructus had the highest degree of confidence and support. Three kinds of combination prescriptions were found by cluster analysis,which were suitable for syndrome of kidney yin-yang deficiency, syndrome of liver constraint and spleen deficiency with damp-heat, and syndrome of damp-heat with stasis. Conclusion: In the clinical treatment of CP with sexual dysfunction, Chinese medicinals such as Plantaginis Semen,Bupleuri Radix,Phellodendri Chinensis Cortex,Epimedii Folium,and Salviae Miltiorrhizae Radix et Rhizoma are commonly used. These medicines primarily serve to tonify dificiency and invigorate blood,clear heat and remove dampness,and regulate qi,which is in line with the main pathogenesis of kidney deficiency and liver stagnation and damp-heat and blood stasis.