Endometriosis is often treated through laparoscopic surgery, where endometrial tissue growing outside the uterus is excised or ablated. This approach allows for precise removal of the tissue with minimal damage to surrounding organs. Surgical intervention is typically considered when medical treatments fail to alleviate symptoms.