Surgical treatment of pelvic endometriosis is an operative procedure to remove or ablate endometrial tissue that has grown abnormally in the pelvic cavity, causing pain and fertility problems. The surgery aims to relieve symptoms and improve reproductive outcomes.