Positive airway pressure is a mode of respiratory ventilation used in the treatment of sleep apnea. PAP ventilation is also commonly used for those who are critically ill in hospital with respiratory failure, in newborn infants, and for the prevention and treatment of atelectasis in patients with difficulty taking deep breaths.