When the body can't get enough oxygen through normal breathing, or when the body can't adequately remove carbon dioxide, mechanical ventilation is needed.