Fentanyl is an opioid pain medication, sometimes called a narcotic. Fentanyl patches are a strong prescription pain medicine. The patches are used to treat moderate to severe chronic pain around the clock.