A vitrectomy is a surgical procedure that involves the removal of the vitreous humor, a gel-like substance inside the eye, to treat various eye conditions. This surgery is often performed by a specialized ophthalmologist known as a vitreoretinal surgeon.