Epididymitis should be treated by controlling the infection and relieving the pain, magnesium sulfate solution can be used to apply wet compresses, antibiotics can be used to control the infection, and non-steroidal anti-inflammatory drugs can be used for analgesia. Epididymitis is a disease caused by Escherichia coli, staphylococcus, Mycobacterium tuberculosis, Neisseria gonorrhoeae, Chlamydia and other pathogenic microbial infections, the disease is mainly treated by medication, and surgery can be chosen if necessary, the medication can be used as a 50% magnesium sulphate solution localized wet compresses, to reduce redness and swelling of the scrotal skin and epididymis. In addition, ceftazidime, erythromycin, levofloxacin, doxycycline and other antibiotics should be used for anti-infective treatment, for patients with obvious pain, ibuprofen and other drugs can be used for pain relief; for patients with epididymitis with abscess formation, incision and drainage should be carried out, and for recurrent episodes of epididymitis and affecting the surrounding tissues, surgical resection can be carried out for treatment. If diagnosed with epididymitis, please follow the doctor’s instructions for treatment.