Alfentanil is an opioid analgesic medication commonly used as a part of surgical anaesthesia. It is also used to provide pain relief in cases where pain is severe and the patient is bedridden. Alfentanil works by acting upon the nervous system in the brain and repressing pain directly at the source.