General anesthesia causes the patient to go to sleep and not feel pain. General anesthesia is either given through a mask or an IV.