Patients with endophthalmitis who have pus buildup in the eye usually do not respond well to medication and require vitrectomy surgery. Pus buildup in endophthalmitis usually does not resolve on its own, so patients need to undergo vitrectomy surgery to remove the pus buildup. Because medications are not effective in treating pus in the eye, surgery is required. Endophthalmitis is a serious complication of ophthalmic surgery and is usually caused by poor postoperative care, which can seriously affect the patient’s vision. Endophthalmitis is usually caused by a bacterial infection, and patients need to be treated with antibiotics and other anti-infective drugs, such as vancomycin and cefaclor. If fungal infections are suspected, additional antifungal medications, such as amphotericin, are needed for treatment. It is recommended that patients with endophthalmitis seek prompt medical attention to assess their condition and follow the doctor’s instructions for treatment.