Nalbuphine injection is used to manage severe pain in individuals who require opioid pain relief but cannot use other pain medications. It is also administered alongside other medications and anesthetics before, during, and after surgeries or medical procedures.