Mechanical ventilation is indicated when the patient's spontaneous ventilation is inadequate to maintain life. It is also indicated as prophylaxis for imminent collapse of other physiologic functions, or ineffective gas exchange in the lungs.