Pelvic inflammatory disease (PID) is an infection of the female upper genital tract that can cause long-term complications like infertility and ectopic pregnancy. Common causes are sexually transmitted bacteria like Chlamydia and gonorrhea. Diagnosis involves examining for cervical tenderness and confirming with tests like endometrial biopsy or laparoscopy. Treatment aims to eliminate the infections with antibiotics and prevent complications through follow up testing and partner treatment. Long term risks counseling is important due to potential issues like chronic pelvic pain.