Pain during intercourse, known as dyspareunia, can be caused by various factors including vaginal dryness, infections, or conditions like endometriosis and fibroids. It can also be related to psychological factors such as anxiety. Consulting a gynecologist can help identify the cause and provide solutions such as lubricants, medications, or therapy.