Pain during sex can be caused by too violent and rough movements during sex, too little vaginal discharge, or women suffering from gynecological diseases such as pelvic inflammatory disease, cervicitis and vaginitis, which need to be treated for the cause. When having sex, you should avoid too violent and rough movements. A little lubricant can be used in the vagina to play the role of lubrication, which can avoid pain during sex. If it is caused by pelvic inflammatory disease, anti-inflammatory treatment with antibiotics and local physiotherapy or hot compresses can be used to promote the absorption of inflammation. If the pain during sex is caused by cervicitis or vaginitis, it is recommended that local suppository medication can be used, and oral antibiotics can be given for treatment if necessary. In addition, pay attention to sexual hygiene, avoid unclean sex, keep the vulva clean and dry, and wash with warm water every day to prevent painful sex.