Continuous positive airway pressure (CPAP) is a machine that uses mild air pressure to keep airways open while sleeping. It's a type of non-invasive ventilation (NIV) or breathing support that can treat sleep-related breathing disorders, such as sleep apnea, and underdeveloped lungs in preterm infants.