Endometriosis occurs when tissue similar to the lining inside the uterus grows outside the uterus. This can cause severe pelvic pain, especially during menstruation, and may lead to infertility. Treatment often involves pain management, hormonal therapy, and surgical options like laparoscopy to remove the abnormal tissue.