Fentanyl, a potent analgesic and addictive substance, significantly impacts sleep-wakefulness (S-W). Acutely, it promotes wake, whereas chronic abuse leads to severe sleep disruptions, including insomnia, which contributes to opioid use disorders (OUD), a chronic brain disease characterized by compulsive opioid use and harmful consequences. Although the critical association between sleep disruptions and fentanyl addiction is acknowledged, the precise mechanisms through which fentanyl influences sleep remain elusive. Recent studies highlight the role of the dopaminergic system of the nucleus accumbens (NAc) in S-W regulation, but its specific involvement in mediating fentanyl's effects on S-W remains unexplored. We hypothesized that dopamine D2 receptors mediate fentanyl-induced effects on S-W. To test this hypothesis, male C57BL/6J mice, instrumented with sleep recording electrodes and bilateral guide cannulas above the accumbal core region (NAcC), were utilized in this study. At dark onset, animals were bilaterally administered sulpiride (D2 receptors antagonist; 250 ng/side) in the NAcC followed by an intraperitoneal injection of fentanyl (1.2 mg/Kg). S-W was examined for the next 12 h. We found that systemic administration of fentanyl significantly increased wakefulness during the first 6 h of the dark which was followed by a significant increase in NREM and REM sleep during the second 6 h of the dark period. D2-receptor blockade significantly reduced this effect as evidenced by a significant reduction in fentanyl-induced wakefulness during first 6 h of dark period and sleep rebound during the second 6 h. Our findings suggest that D2 receptors in the NAcC plays a vital role in mediating the fentanyl-induced changes in S-W.