Sexsomnia, or sleep sex, occurs when an individual engages in sexual acts while asleep. Various triggers can increase the likelihood of sexsomnia, such as exhaustion, stress, or sleeping conditions.