Respiratory failure is a medical condition which affects respiration. It means the alveoli in the lung are not getting enough oxygen. Because of this, gas exchange in the blood is reduced. Respiratory failure will lead to a person's death. For this reason, it is a medical emergency. Emergency treatment of respiratory failure is very similar to that of cardiopulmonary resuscitation.