There is insufficient evidence to recommend routine use of opioids in mechanically ventilated newborns. Opioids should be used selectively, when indicated by clinical judgment and evaluation of pain indicators. If sedation is required, morphine is safer than midazolam. Further research is needed.