Pelvic inflammatory disease (PID) is an infection caused by bacteria. When bacteria from the vagina or cervix travel to your womb, fallopian tubes, or ovaries they can cause an infection. Most of the time, PID is caused by bacteria from chlamydia and gonorrhea.