Detumescence is the process during which blood leaves the erect penis, returning it to a flaccid state. It is often a stage when the penis is subsiding from sexual tension, swelling, and sexual arousal. This can happen when an erection goes down or after a sexual encounter.