Fentanyl is a highly potent synthetic piperidine opioid primarily used as an analgesic. It is 30 to 50 times more potent than heroin and 50 to 100 times more potent than morphine.