Abstract Background Weaning from mechanical ventilation (MV( and timing of extubation are crucial components in the postoperative management of cardiac surgery as altered respiratory mechanics and positive pressure ventilation may have significant influence on hemodynamics. Aim: To evaluate risk factors for failure of weaning from mechanical ventilation after pediatric cardiac surgery and to assess the frequency of phrenic nerve injury. Methodology This Cohort study included medical records of 101 children admitted consecutively to Pediatric post-cardiac surgery ICU in Academy of Cardiovascular surgery in Ain Shams university Hospitals between April, 2020 and April, 2021, who had undergone heart surgery. The patients were divided into two groups : - successefully weaned group. - Difficult to wean group. Diaphragmatic ultrasound was done for every difficult weaning patient to assess diaphragmatic paralysis. Result: Age (P < 0.001), Weight (P < 0.001), volum intake (P < 0.001), systolic blood pressure (P = 0.017), Diastolic blood pressure (P = 0.004), were significantly lower in patients who showed difficult weaning compared to patients with successful weaning. Furthermore operation time (P < 0.001), use of noradrenaline (P = 0.019), use of adrenaline ( P = 0.017), use of Milirinon ( P = 0.003), respiratory rate ( P = 0.003), inotropic support (P = 0.001), positive fluid balance (P < 0.001), heart failure, renal failure, Pulmonary complications, need of pace maker, sepsis ( P < 0.001), diaphragmatic paralysis ( P < 0.001), transposition of great arteries operations ( P = 0.009), were significantly higher in patients who showed difficult weaning compared to patients with successful weaning. While use of dobutamine, discharge with open chest, reoperation, transfusion > 50 ml / kg, urine output, reoperation bleeding and any operation other than atrial septal defect, transposition of great arteries all did not affect weaning difficulty. Conclusion younger age, operation time, as well as sepsis were the best predictors for difficulty of weaning.