CPAP works by delivering a gentle stream of pressurized air through a mask that covers the nose or nose and mouth. This air pressure helps keep the airway open, preventing apneas (pauses in breathing) and improving oxygenation during sleep.