Endometritis is an inflammation of the uterus lining, also called the endometrium. An infection from childbirth, surgery, or an STI, such as chlamydia, are among the causes. This condition is different from endometriosis, but it may also affect pregnancy. It is treatable using antibiotics and possibly surgery.