The signal transducer and activator of transcription 3 (STAT3) pathway is one of the main growth factor‑mediated signal transduction pathways and is closely associated with the occurrence and development of benign prostatic hyperplasia (BPH). Qianliening capsules (QC) have significant therapeutic effects on BPH; however, the precise mechanism underlying its anti‑BPH activity remains to be elucidated. To further elucidate the molecular mechanism of the therapeutic effect of QC on BPH, the present study used epidermal growth factor (EGF), which has a role in the pathogenesis of BPH, to stimulate the growth of human prostate WPMY‑1 cells and activate the STAT3 pathway in the WPMY‑1 cells. The cell viability was determined using an MTT assay and the cell morphology was observed by phase‑contrast microscopy. Fluorescence activated cell sorting analysis with Annexin‑V/propidium iodide (PI) staining and PI staining were performed to examine cell apoptosis and the cell cycle. The activation of caspase‑9 and ‑3 were evaluated by colorimetric assay. STAT3 phosphorylation and transcriptional activity were detected by western blot analysis and the luciferase gene reporter, respectively. The mRNA and protein expression levels of B‑cell lymhoma 2 (Bcl‑2), Bcl‑2‑associated X protein (Bax), cyclin D1, cyclin‑dependent kinase 4 (CDK4) and p21 were measured by reverse transcription quantitative polymerase chain reaction and western blot analysis, respectively. In the present study, QC was found to significantly and dose‑dependently inhibit the EGF‑stimulated growth of WPMY‑1 cells, as evidenced by QC‑induced cell -morphological changes and a reduction in cell viability. In addition, QC treatment markedly induced the activation of caspase‑9 and ‑3. QC treatment also inhibited the EGF‑mediated increase of STAT3 phosphorylation levels and transcriptional activity in WPMY‑19 cells, accompanied by downregulation of the expression of Bcl‑2, cyclin D1 and CDK4 and upregulation of the expression of Bax and p21. These results suggested that QC effectively inhibited the proliferation and promoted the apoptosis of human prostate cells via modulation of the STAT3 signaling pathway and its target genes, which is likely to be one of the mechanisms underlying its activity in BPH treatment.