This is a technique used to eliminate pain during a surgical, obstetrical or medical procedure (endoscopy, radiology, etc.). It is induced by injecting medication or inhaling anesthetic vapors.
These substances put you into a state comparable to very deep sleep.
Watch the video below for more information :