Mechanical ventilation can be used to support or replace spontaneous breathing in patients unable to maintain adequate ventilation on their own. It aims to facilitate carbon dioxide release and maximize oxygen delivery. Modes include controlled mandatory ventilation where the ventilator controls both tidal volume and rate, and assist-control where the ventilator provides a minimum rate with additional breaths triggered by the patient. Synchronized intermittent mandatory ventilation delivers mandatory breaths at set intervals while allowing spontaneous breathing in between to reduce asynchrony.