Buprenorphine is a partial opioid used in treating opioid use disorder and moderate pain . The drug functions by engaging with opioid receptors , eliciting a lessened response relative to full opioid medications . Doctors often prescribe buprenorphine together with naloxone to mitigate the risk of diversion and breathing