CPAP works by delivering a continuous flow of air or oxygen through a nasal prong, mask, or other interface. This continuous pressure helps to keep the airways and alveoli open during both inspiration and expiration. The positive pressure also prevents airway collapse, reduces the work of breathing, and enhances functional residual capacity (FRC).