Anesthesiology is the branch of medicine dedicated to pain relief for patients before, during, and after surgery.