endometriosis is treated with surgery. this is called laparoscopy. the doctor doing the surgery can look inside the body to find endometriosis tissue. surgery with biopsy is the only way to be sure that a woman has endometriosis. the doctor may see endometriosis tissue during laparoscopy. a doctor may remove a sample and study it under the microscope to decide.