The process of administering anesthesia to a patient to induce unconsciousness and prevent pain during a medical procedure.