A medicine for treating varicocele belongs to the technical field of traditional Chinese medicine preparation. The medicine is prepared from the following components by weight: 2-4 parts of raspberry, 2-4 parts of medlar, 2-5 parts of Rhizoma Atractylodis Macrocephalae Preparata, 3-6 parts of Poria cocos, 2-3 parts of dried tangerine peel, 2-3 parts of radix bupleuri, 2-4 parts of Herba schizonepetae, 2-4 parts of Radix Paeoniae Alba, 2-3 parts of cassia twig and 2-3 parts of cortex moutan. The above medicaments are ground respectively, mixed together, and prepared into pills, powders, granules, paste and other pharmaceutical dosage forms according to the conventional processing methods. The medicine is for the treatment of intermingled deficiency and excess varicocele in Chinese medicine syndrome differentiation and can effectively improve the patient's fertility. The medicine is based on the classical theory of Chinese medicine, and optimized from continuous clinical practice. The medicine has the efficacies of invigorating spleen, tonifying kidney, transforming dampness, coursing the liver, rectifying qi an invigorating blood circulation. Compared with operation, the medicine has the advantages of convenient use, safety, effectiveness, low cost, and easy acceptance by the patient.