Pain during sexual activity can be caused by a variety of factors. Physical causes may include infections, hormonal imbalances, vaginal dryness, or certain medical conditions. Psychological factors such as stress, anxiety, or past traumatic experiences can also contribute to discomfort during sex.