A CPAP machine is a medical device used to treat sleep apnea,

a condition where a person’s breathing is interrupted during sleep.

The machine consists of a mask that fits over the nose or mouth,

which is connected to a small air pump.

The pump delivers a continuous flow of air at a gentle pressure into  the person’s airway to keep it open and prevent it from collapsing.

The purpose of the CPAP machine is to provide a constant stream of air pressure, which acts as a splint to keep the airway open.