Newborn infants experience pain after surgical procedures,prevention and management of pain in neonates is important due to its deleterious consequences. Fentanyl is a widely used analgesic which promotes rapid analgesia,however, is not free of adverse effects including chest wall rigidity, hypothermia, hypotension, respiratory depression and tolerance.Dexmedetomidine is a selective α 2-adrenergic agonist can cause sedation, anxiolysis, analgesia and minimal respiratory depression.Therefore, the objective of the study is to evaluate the safety and efficacy of dexmedetomidine compared to fentanyl in postoperative mechanically ventilated neonates.