Mechanical ventilation involves using a mechanical device to assist breathing and improve gas exchange. It helps control the airway and breathing workload, replaces exhausted respiratory muscles, and allows use of medications that could otherwise suppress breathing. Key functions include setting oxygen levels, breathing rate and volume, as well as pressures to open collapsed airspaces. Modes include fully controlled, supported, and combined approaches. Weaning gradually reduces ventilator support levels as the patient recovers lung function and the ability to breathe independently.