General anesthesia causes you to go to sleep and not feel pain. General anesthesia is either given through a mask or an injection.