There are many causes of testicular swelling and pain, such as inflammation, trauma, tumors, etc. It is necessary to identify the cause of the disease and treat the primary disease, such as bacterial infection can be oral levofloxacin, etc., and testicular torsion needs to be lifted as soon as possible. 1. Inflammation: such as orchitis, epididymitis, seminal vesiculitis, prostatitis, etc., bacterial infection can be oral cefixime dispersible tablets, levofloxacin, etc., caused by sexually transmitted diseases can be oral doxycycline, azithromycin and other treatments. If the disease is serious, it is necessary to give drugs intravenously, and if necessary, carry out bacterial culture and drug sensitivity test. 2. Trauma: If testicular torsion, it is necessary to untwist as soon as possible to restore testicular blood supply. If the torsion time is short and the local swelling is not serious, manipulation can be tried first. If the maneuver is unsuccessful or the testicular torsion has been more than 8 hours, surgery should be performed. 3. Tumor: If testicular tumor is present, depending on the situation, surgical resection is usually the main treatment, supplemented by radiotherapy and chemotherapy. If there are other reasons for testicular swelling and pain, it is necessary to go to the hospital as soon as possible for examination, to clarify the cause of the disease, and to use medication and treatment reasonably under the guidance of the doctor, so as to avoid delaying the condition.