Answer:
In the earliest surgical procedures, which made use of anesthesia, ether was used. Nowadays, there are literally dozens of different types of anesthetic gases that may be used depending upon the surgery performed, the patient's allergy (to medications) profile, among several factors.
The most commonly used is nitrous oxide, or laughing gas.