The purulent discharge from the glans may be caused by balanitis. The patient should go to the urology department of the local hospital for examination. According to the specific type of balanitis, use the corresponding drug ointment to smear balanitis for treatment. If it is fungal balanitis, you can use an antifungal ointment. If it is bacterial balanitis, you can use antibacterial and anti-inflammatory ointment. In addition, patients should keep the glans and the inner side of the foreskin clean. They can use warm water to clean the glans and the inner side of the foreskin every day, and clean the foreskin dirt on them in time. After balanitis is completely cured, circumcision can be performed to prevent recurrence.