Trabeculectomy is a type of eye surgery done in the front part of the eye. It's done to treat glaucoma by draining some fluid from the eye. This helps to lower pressure inside the eye.