The process of administering anesthetic drugs to induce and maintain anesthesia during surgical procedures.