Endometriosis is a painful condition caused by the spread of tissue from the lining of the uterus into other parts of the body.