Runjing Decoction (RJD) is a prescription of traditional Chinese medicine for the treatment of oligoasthenospermia. However, the molecular mechanism of RJD on oligoasthenospermia still remains unknown. A model of oligoasthenospermia was induced in 30 Sprague Dawley rats by intraperitoneal injection of cyclophosphamide at 35 mg/kg per day for 5 days and treated by intragastric RJD (13.5 g/kg) or L‐carnitine (100 mg/kg) for 14 days. The body weight, testis and epididymis weight, grade A spermatozoa, grade B spermatozoa, the percentage of sperm forward motility (PR%), the sperm activity rate and the sperm density of rats were evaluated before and after RJD treatment. The testis apoptosis was determined by TUNEL staining. The expressions of RXFP1, FoxO1, PI3K, Akt, Bax and Bcl‐2 were determined by qRT‐PCR and Western blot, respectively. After RJD treatment, the grade A spermatozoa, sperm PR%, sperm activity and sperm density were significantly increased relative to those in model rats. Cell apoptosis of testis tissue was reversed by RJD. RJD suppressed cell apoptosis, inhibited the expression of RXFP1, FOXO1, PI3K, AKT and Bax, and promoted the expression levels of Bcl‐2 in testicular tissue of oligoasthenospermia rats. RJD could alleviate sperm quality and testis damage in oligoasthenospermia rats by inhibiting RXFP1/AKT/FOXO1 pathway.