Pelvic inflammatory disease is an infection in the uterus, ovaries and/or fallopian tubes most commonly caused by sexually transmitted infections. Having had PID in the past increases your risk of pregnancies outside of the uterus.