Pelvic inflammatory disease (PID) is caused by an infection developing in the female upper genital tract. In most cases, the condition is caused by a bacterial infection spreading from the vagina or cervix (entrance to the womb) into the womb, fallopian tubes and ovaries.