Sleep apnea occurs when the soft tissues in the throat relax during sleep, blocking the airway and causing shallow or paused breathing. Obesity, tobacco use, and alcohol use are all risk factors for developing sleep apnea.