You also may be asked about medications that you are taking, whether you have any medical conditions, and past events that may affect how you feel about sex, such as sexual abuse. Then there are STDs such as gonorrhea or chlamydia, which often have zero signs but can cause pelvic pain and a greenish-yellow discharge. Injury to the vulva or vagina. Medication or surgery may be needed in some cases. A condition in which tissue that lines the uterus is found outside of the uterus, usually on the ovaries, fallopian tubes, and other pelvic structures. There also are some self-help measures you can try to relieve pain during sex: Try sexual activities that do not cause pain. If either is discovered, they should be treated with the appropriate antibiotics. These spasms may be due to several factors, including painful intromission, previous painful sexual experiences, prior sexual abuse, or an unresolved conflict regarding sexuality. Many pain medications also can reduce sexual desire. The laparoscope is used to view the pelvic organs. Your ob-gyn or other health care professional also can help you address problems with sexual response. Your state of mind—Emotions such as fear, guilt, shame, embarrassment, or awkwardness about having sex may make it hard to relax. Treatment is based on the presence of bacteria or other organisms. A physician may perform a cystoscopy a procedure to look inside the bladder and distend stretch the bladder wall in order to attempt treatment of the condition. Discharge can be a tip-off that an infection is causing the pain.