Endometriosis also affects the decidua in contact with the fetal membranes during pregnancy.