Endometritis is an inflammation of the endometrium, which is the inner lining of the uterus. This condition is typically caused by infection and may result in pain, abnormal bleeding, or discharge.