Dyspareunia is a term used to describe painful intercourse experienced by individuals during or after sexual activity. It can affect both men and women, but it is more commonly associated with women. The pain can occur in the genital area or deeper within the pelvis.