Pelvic inflammatory disease (PID) is caused by an infection developing in the female reproductive system.
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.
PID is often caused by more than one type of bacterium and it can sometimes be difficult for doctors to pinpoint which are responsible.
This means a combination of antibiotics will be prescribed so a variety of bacteria can be treated.
The main cause of PID is through a sexually transmitted infection (STI) such as chlamydia, gonorrhoea or mycoplasma genitalium.
These bacteria usually only infect the cervix, where they can be easily treated with antibiotics.
But if they're not treated there's a risk the bacteria could travel into the female reproductive organs.
If you have chlamydia and it's left untreated, it may develop into PID within a year.
In many cases, the cause of the infection that leads to PID is unknown.
Sometimes, the usually harmless bacteria found in the vagina can get past the cervix and into the reproductive organs.
Although harmless in the vagina, these types of bacteria can cause infection in other parts of the body.
This is most likely to happen if:
If an infection spreads upwards from the vagina and cervix, it can cause inflammation of the:
Pockets of infected fluid called abscesses can also develop in the ovaries and fallopian tubes.
Anyone with female reproductive organs can get PID, but you're more likely to get it if you: