A vitrectomy is a type of eye surgery to treat problems with the retina and vitreous. During the surgery, your eye healthcare provider removes the vitreous and replaces it with another solution.