Weaning from mechanical ventilation is the process of gradually transferring breathing from the ventilator to the patient. It must be individualized and involves assessing patient readiness using criteria like clinical stability, adequate oxygenation and pulmonary function. Weaning success means unassisted breathing for 48 hours after removal from the ventilator. Patients are classified as having simple, difficult or prolonged weaning based on time to successful extubation. Factors that can cause weaning failure include increased airway resistance, decreased lung compliance, and respiratory muscle fatigue due to conditions like cardiac dysfunction, diaphragm weakness or endocrine abnormalities.