Respiratory failure is a condition in which your blood doesn't have enough oxygen or has too much carbon dioxide. Sometimes you can have both problems. When you breathe, your lungs take in oxygen. The oxygen passes into your blood, which carries it to your organs.