Anesthesiologists are often responsible for managing pain during and after surgery using medications and other techniques.