Pain during sex is mainly caused by gynecological inflammation, commonly vaginal inflammation and pelvic inflammation. For pelvic inflammatory disease caused by pain during sex, this situation needs to be further investigated gynecological ultrasound and gynecological examination. If the pain is caused by pelvic inflammatory disease, you need to take oral antibiotics, usually cephalosporin antibiotics combined with metronidazole antibiotic treatment, and pay attention to rest, avoid spicy, stimulating food, prohibit sexual intercourse. If the pain during sex is caused by vaginal inflammation, you need to further examine the vaginal secretions and decide how to treat it according to the vaginal secretion test.