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.