Anesthesia is the use of medicines to prevent pain during surgery and other procedures. These medicines are called anesthetics. They may be given by injection, inhalation, topical lotion, spray, eye drops, or skin patch. They cause you to have a loss of feeling or awareness.