Relaxation plays a huge role. Girls can try relaxation techniques like deep breathing before and during sex. If the pain persists, it might be a sign of an underlying medical issue, so seeing a doctor is advisable. Doctors can check for things like hymenal abnormalities or vaginal infections that could be causing the pain.